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配置文件:
SFTP无法连接故障处理
然后,使用shift+G跳到末行,发现sftp的路径是:

[code lang="js"] Subsystem sftp /wp-content/libexec/sftp-server[/code]

SFTP无法连接故障处理
改路径为:

[code lang="js"] Subsystem sftp /wp-content/libexec/openssh/sftp-server[/code]

SFTP无法连接故障处理

重启一下sshd服务:

[code lang="js"] /etc/init.d/sshd restart [/code]

SFTP无法连接故障处理

再次使用ftp工具连接,ok!