SFTP无法连接故障处理
今天一朋友问我一问题,本想进FTP给他截图,但发现FTP就是进不去,一直报错:
错误信息:
[code lang="js"]
ssh failed to open a secure file transfer session,
ftp Connection closed by server with exitcode 127[/code]
系统环境:CentOS5.8 2bit+LNMP
首先进入服务器到sfp配置文件:
然后,使用shift+G跳到末行,发现sftp的路径是:
[code lang="js"] Subsystem sftp /wp-content/libexec/sftp-server[/code]
[code lang="js"] Subsystem sftp /wp-content/libexec/openssh/sftp-server[/code]
重启一下sshd服务:
[code lang="js"] /etc/init.d/sshd restart [/code]
再次使用ftp工具连接,ok!
- 上一篇: 佛学入门常见词汇简述
- 下一篇: Linux VPS安装图形化界面