服务器设置ssh之后,远程sftp连接失败
[quote]
Connection closed by server with exitcode 126
[/quote]
原因是:
"/etc/ssh/sshd_config"
sshd配置文件中引用的sftp不存在造成的
修改配置文件中的相关配置,改为使用internal-sftp
[quote]
Connection closed by server with exitcode 126
[/quote]
原因是:
"/etc/ssh/sshd_config"
sshd配置文件中引用的sftp不存在造成的
修改配置文件中的相关配置,改为使用internal-sftp
#Subsystem sftp /usr/local/ssh/libexec/sftp-server
Subsystem sftp internal-sftp