1. 服务器上执行whereis sftp-server,找到sftp-server位置

 

2. 服务器上打开sshd_config: sudo vi /etc/ssh/sshd_config

把Subsystem这行替换成 Subsystem sftp 找到的sftp-server位置

 

3. 服务器上重启sshd, sudo systemctl restart sshd

 

4. 如果pycharm还报错,需要重启pycharm

黄世宇/Shiyu Huang's Personal Page:​​https://huangshiyu13.github.io/​