Guest User

Untitled

a guest
Mar 21st, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. import paramiko
  2.  
  3. #Connect my PC to my RPi via SSH
  4. ssh_client = paramiko.SSHClient()
  5. ssh_client.set_missing_host_key_policy(paramiko.AutoAddPolicy())
  6. ssh_client.connect("00.00.000.000", port = 0, username = "username",password="password")
  7.  
  8. #Move file from RPi to my PC
  9. ftp_client=ssh_client.open_sftp()
  10. ftp_client.get("path_file_in_RPi","path_destination_in_PC")
  11. ftp_client.close()
Add Comment
Please, Sign In to add comment