SSH Secure File Transfer 传文件出问题
2011-06-24 22:25
671 查看
SSH Secure File Transfer 传文件出问题
用SSH Secure File Transfer 传文件时总是出错,提示信息为:"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."
解决办法:
罪魁祸首就是.bashrc文件。[break]
在bash的联机手册里有一段,说的是关于通过RSHD登录系统时,系统要执行.bashrc文件。而这 个文件是在启动一个交互SHELL时才要执行的。而在SSH登录时,系统就要执行.bashrc文件。而SSH登录系统是非交互的。如果执 行.bashrc文件时,产生输入与输出就会出在我遇到的这个问题。
解决办法是:在.bashrc文件中,测试一下是交互SHELL还是非交互的,如果是非交互的,则直接退出即可。
一般在.bashrc文件的最前边加入下面这行就可以了:
[ -z "$PS1" ] && return
或者:
[ $- != *i* ] && return
相关文章推荐
- SSH Secure File Transfer上传文件错误:encountered 1 errors during the transfer解决办法
- 使用SSH Secure File Transfer给RHEL5传JSP网站,出现文件夹大小写问题
- ssd sftp传输文件问题出现 failed to open a secure file transfer session
- SSH Secure File Transfer Client传送文件
- ssd sftp传输文件问题出现 failed to open a secure file transfer session
- 通过SSH安全协议传输文件(SecureCRT, SSH Secure File Transfer Client)
- ssh secure file transfer连接linux上传文件,扯蛋?
- ssd sftp传输文件问题出现 failed to open a secure file transfer session
- Windows 使用ssh secure file transfer上传文件到linux服务器
- SSH Secure File Transfer Client 中文乱码解决方法
- SSH Secure File Transfer 新手小贴士
- SSH Secure Shell Client连上了,ssh secure File Transfer却打不开
- SSH Secure File Transfer 新手小贴士
- SSH Secure File Transfer 文件传输故障
- SSH Secure File Transfer 新手小贴士
- SSH Secure File Transfer Client 与 网络抓包工具
- MAC下MySQL创建my.cnf配置文件及secure_file_priv为null问题
- F-Secure SSH File Transfer遇到错误"too many authentication failures for root"
- Transfer Error: "encountered 1 errors during the transfer" via SSH Secure File Transfer
- SSH Secure File Transfer Client用public key认证登录