“检测到其他SFTP协议不兼容”是什么意思?

时间:2018-08-03 16:13:36

标签: python sockets tcp paramiko

尝试使用paramiko模块删除远程SFTP服务器上的文件时出现以下错误:

IOError: Bad message

在SFTP文档中,“错误消息”表示:

  

检测到格式错误的数据包或其他SFTP协议不兼容。

我不断收到此错误,因此我不认为原因是“格式错误的数据包”,因此“检测到其他SFTP协议不兼容”是什么意思?

如何调试此错误?请让我知道。

我在我的Python代码中启用了paramiko登录,但是关于此错误的日志文件中未显示任何内容。

INF [20180803-16:01:08.331] thr=1   paramiko.transport: Authentication (password) successful!
DEB [20180803-16:01:08.335] thr=2   paramiko.transport: [chan 0] Max packet in: 32768 bytes
DEB [20180803-16:01:08.507] thr=1   paramiko.transport: [chan 0] Max packet out: 98304 bytes
DEB [20180803-16:01:08.508] thr=1   paramiko.transport: Secsh channel 0 opened.
DEB [20180803-16:01:08.708] thr=1   paramiko.transport: [chan 0] Sesch channel 0 request ok
INF [20180803-16:01:08.882] thr=2   paramiko.transport.sftp: [chan 0] Opened sftp connection (server version 3)
DEB [20180803-16:01:08.883] thr=2   paramiko.transport.sftp: [chan 0] remove('a.txt')
DEB [20180803-16:01:09.157] thr=1   paramiko.transport: EOF in transport thread

0 个答案:

没有答案
相关问题