使用sshd 连接,sftp上传文件出现 failed to open a secure file transfer session错误提示

来源:互联网 发布:怎么举报网络赌钱 编辑:程序博客网 时间:2024/05/17 17:18


1、使用sshd 连接,sftp上传文件出现 failed to open a secure file transfer session错误提示
 
vi /etc/ssh/sshd_config    shift+G跳转到文件尾
Subsystem sftp /usr/libexec/sftp-server  #发现这里的路径不对
/usr/libexec/目录下没有sftp-server文件,将其修改为正确的sftp-server路径
Subsystem sftp /usr/libexec/openssh/sftp-server

2、重启sshd服务
/etc/init.d/sshd restart
 
3、从新使用sshd连接,在使用sftp上传文件,OK问题解决了

来自:http://www.cnblogs.com/lchangelo/archive/2011/11/23/2260394.html
0 0