sftp 报错 Connection closed
sftp 报错:subsystem request failed on channel 0. Connection closed
解决方案: 修改sshd_config配置
cd /etc/ssh //找到ssh目录
vi sshd_config
Subsystem sftp /usr/libexec/openssh/sftp-server (增加这句话,红色的表示sftp-server路径,有些路径是/usr/lib/openssh/sftp-server)
# Subsystem sftp internal-sftp
systemctl restart sshd.service (重启sftp服务即可)