File transfer server could not be started or it exited unexpectedly.Exit value 0 was returned. Most

转载 2013年12月02日 13:55:51


SSH不能传输文件问题

提示信息为:”File transfer server could not be started or it exited unexpectedly.Exit value 0 was returned. Most likely the sftp-server is not in the path of the user on the server-side.”



用root用户登录时会有以上错误、而其他用户登录则无。

解决方案:

在/root/.bashrc文件的最前边加入下面这行就可以了:

[ -z "$PS1" ] && return

或者:

[ $- != *i* ] && return

修改/etc/.bashrc文件不起作用




相关文章推荐

java was started but returned exit code

  • 2014年03月07日 20:55
  • 599B
  • 下载

CASE: MS SQL SERVER 2008 R2 service could not be started.

As I am taking over an existing project from team, I need to install MS SQL SERVER 2008 R2 for devel...
  • Hisgend
  • Hisgend
  • 2011年09月01日 13:14
  • 213

查询时出错 An expected Field was not found or could not be retrieved properly. [SHAPE.AREA] 解决方法

本来做的事情是将SDE中任意范围内的要素按查询条件导出到文件地理数据库,最初使用的是IFeatureDataConverter接口的ConvertFeatureClass方法,可是后来发现这个方法不支...
  • zxhm001
  • zxhm001
  • 2014年01月03日 10:27
  • 1119

java was started but returned exit code=13 / No java virtual machine (1)

启动Eclipse时,启不起来java was started but returned exit code=13

eclipse 错误 java was started but returned exit code =-805306369 .

转载地址:http://blog.csdn.net/lpj1206/article/details/7046940   java was started but returned exit cod...

java was started but returned exit code = 13

启动Eclipse 报错:java was started  but  returned exit code = 1  (2012-11-10 01:07:12) 转载▼ ...

“Can't start Eclipse - Java was started but returned exit code=13”问题解决办法

前言在第一次启动eclipse或者更换了系统JDK版本以后,有时候会碰到如下的报错(弹出框内容不一定是一样的,但是第一句都是“Java was started but returned exit co...

Eclipse中Reasons for Java was Started but Returned Exit Code=13 Error

Before going to the solution, let us know why it is showing that error. If you know the problem behi...

the file “XXX” could not be opened because you don't have permission to view it

今天使用Xcode6,突然提示我"the file “XXX” could not be opened because you don't have permission to view it"  说...

java was started but returned exit code=13 与查看java参数

遇到java was started but returned exit code=13这样的问题,首先想到eclipse与JDK 32 64不一致 那么如何查看JDK是多少位滴来~~~一般是cmd...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:File transfer server could not be started or it exited unexpectedly.Exit value 0 was returned. Most
举报原因:
原因补充:

(最多只允许输入30个字)