paramiko错误信息:Paramiko error: size mismatch in put

在使用paramiko的put往远处服务器上传资源的时候,出现类似下面的错误信息

The code in paramiko's sftp_client.py:putfo() reads at the end:

    s = self.stat(remotepath)
    if s.st_size != size:
        raise IOError('size mismatch in put!  %d != %d' % (s.st_size, size))

I had a similar issue and it turned out that the remote filesystem was full and thus paramiko couldn't write/put the file.

 

根据paramiko的源代码分析,可知是目的设备的磁盘空间不足,无法上传资源

原文地址:https://www.cnblogs.com/shengulong/p/8401840.html