Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- client = paramiko.SSHClient()
- client.set_missing_host_key_policy(AllowAnythingPolicy())
- client.connect(client_host, username=client_username, password=client_password)
- sftp = client.open_sftp()
- # sftp.get_channel().in_window_size = 2097152
- # sftp.get_channel().out_window_size = 2097152
- # sftp.get_channel().in_max_packet_size = 2097152
- # sftp.get_channel().out_max_packet_size = 2097152
- latest_filename = "test.zip"
- sftp.get(sftp_path+"/"+latest_filename, destination_path+"/"+latest_filename, callback=callback_for_filename)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement