SFTP无法连接 Connection closed by server with exitcode 127

命令: Pass: ************
状态: Connected to 66.77.88.99
错误: Connection closed by server with exitcode 127
错误: 无法连接到服务器

 

解决方法:

vi /etc/ssh/sshd_config   

 

其中:

“Subsystem sftp /usr/libexec/sftp-server”
 将其修改为正确的sftp-server路径 Subsystem
“Subsystem       sftp    /usr/libexec/openssh/sftp-server”

 

重启sshd服务

/etc/init.d/sshd restart

posted @ 2015-06-03 12:17  emanlee  阅读(13580)  评论(0编辑  收藏  举报