我正在尝试将文件从远程服务器复制到本地目录。在
我使用pythonparamiko的sftpget来复制文件。在
sftp.get(remote_pate, local_path)
在复制了很少的文件之后,我得到了以下异常。在
^{pr2}$使用建立连接
ssh = paramiko.SSHClient()
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
ssh.connect(host, username=username, password=password)
sftp = ssh.open_sftp()
为什么连接断开了?我该怎么办?提前谢谢。在
当读取数据包有任何错误或存在eoferor时,就会出现这种情况(如源代码第667行,http://www.lag.net/paramiko/docs/paramiko.sftp_client-pysrc.html)的情况
相关问题 更多 >
编程相关推荐