Redhat远程sftp连接失败

服务器设置ssh之后,远程sftp连接失败
引用

Connection closed by server with exitcode 126



原因是:
"/etc/ssh/sshd_config"
sshd配置文件中引用的sftp不存在造成的
修改配置文件中的相关配置,改为使用internal-sftp
 #Subsystem      sftp    /usr/local/ssh/libexec/sftp-server 
 Subsystem      sftp    internal-sftp

猜你喜欢

转载自chinacheng.iteye.com/blog/2258485