sftp 登录失败的解决办法
2024/07/10
1、先检查ssd服务是否正常运行。
systemctl status sshd
2、编辑/etc/ssh/sshd_config
文件,将Subsystem sftp /usr/libexec/openssh/sftp-server
替换为Subsystem sftp internal-sftp
。
#Subsystem sftp /usr/libexec/openssh/sftp-server Subsystem sftp internal-sftp
3、重启sshd服务。
systemctl restart sshd