Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. sftp.get(remote_pate, local_path)
  2.  
  3. SSHException('Server connection dropped')
  4.  
  5. ssh = paramiko.SSHClient()
  6. ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
  7. ssh.connect(host, username=username, password=password)
  8. sftp = ssh.open_sftp()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement