リモートサーバーからローカルディレクトリにファイルをコピーしようとしています。
Pythonparamikoのsftpgetを使用してファイルをコピーしています。
sftp.get(remote_pate, local_path)
ごく少数のファイルをコピーした後、次の例外が発生します。
SSHException('Server connection dropped')
を使用して接続を確立します。
ssh = paramiko.SSHClient()
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
ssh.connect(host, username=username, password=password)
sftp = ssh.open_sftp()
接続が切断されるのはなぜですか?どうすればこれを処理できますか?前もって感謝します。