引用
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
#Subsystem sftp /usr/local/ssh/libexec/sftp-server Subsystem sftp internal-sftp