python paramiko模块ftp报错:

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/dist-packages/paramiko/sftp_client.py", line 170, in from_transport
return cls(chan)
File "/usr/lib/python2.7/dist-packages/paramiko/sftp_client.py", line 132, in __init__
raise SSHException("EOF during negotiation")
paramiko.ssh_exception.SSHException: EOF during negotiation

 

解决方案:

sftp服务问题:

首先,查找sftp-server安装位置,find / -name sftp-server

然后,vim /etc/ssh/sshd_config ,查看sftp路径是否正确,修改。

最后重启sshd: systemctl restart sshd 

 

相关文章:

  • 2021-12-15
  • 2022-12-23
  • 2022-02-05
  • 2022-12-23
  • 2021-07-04
猜你喜欢
  • 2022-12-23
  • 2021-12-18
  • 2021-07-17
  • 2021-11-01
  • 2021-11-08
  • 2021-08-18
  • 2021-07-24
相关资源
相似解决方案