LXY3800 发表于 2019-1-27 07:10:45

ssd sftp传输文件问题出现 failed to open a secure file transfer session

系统:Centos 5.2
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问题解决了!



页: [1]
查看完整版本: ssd sftp传输文件问题出现 failed to open a secure file transfer session