Advertisement
Guest User

Untitled

a guest
Feb 11th, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. import paramiko
  2.  
  3. ssh = paramiko.SSHClient()
  4. ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
  5. ssh.connect('10.X.X.X',username='user',password='password')
  6.  
  7. stdin, stdout, stderr=ssh.exec_command("get system status")
  8. type(stdin)
  9. stdout.readlines()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement