Advertisement
Guest User

Untitled

a guest
Feb 19th, 2016
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. import paramiko
  2.  
  3.  
  4. if __name__ == '__main__':
  5. ssh = paramiko.SSHClient()
  6. # important line if you've never logged into the machine before
  7. ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
  8. ssh.connect('192.168.0.10', username='pi', password='raspberry')
  9. ssh.exec_command('touch /tmp/sshisawesome')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement