paramiko.ssh_exception.SSHexception:Server connection dropped:

在同事的帮助下得以解决:亲测有效:

以下语句需要添加后面俩个参数:

self.__sftp_windows_size = 1073741824;
self.__sftp_max_package_size = 1073741824;
self.sftp = paramiko.SFTPClient.from_transport(t, self.__sftp_windows_size, self.__sftp_max_package_size)

具体原因可看:https://stackoverflow.com/questions/45891553/paramiko-hangs-on-get-after-ownloading-20-mb-of-file/48170689#48170689?tdsourcetag=s_pcqq_aiomsg

你可能感兴趣的:(paramiko.ssh_exception.SSHexception:Server connection dropped:)