Guest User

Untitled

a guest
Nov 17th, 2017
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. from paramiko import SSHClient
  2. from paramiko import AutoAddPolicy
  3. from scp import SCPClient
  4. ssh = SSHClient()
  5. ssh.load_system_host_keys()
  6. ssh.set_missing_host_key_policy(AutoAddPolicy())
  7. ssh.connect('192.168.150.4',username='researcher',password='help')
  8.  
  9. #SCP connectin
  10. scp = SCPClient(ssh.get_transport())
  11. scp.put('test.txt')
Add Comment
Please, Sign In to add comment