vim /etc/ssh/sshd_config
把
Subsystem       sftp    /usr/libexec/openssh/sftp-server
修改成:
Subsystem       sftp    /usr/libexec/openssh/sftp-server.sh
#vim /usr/libexec/openssh/sftp-server.sh
添加如下:
#Subsystem sftp /usr/libexec/openssh/sftp-server

#chmod 755 /usr/libexec/openssh/sftp-server
#systemctl restart sshd