Guest User

Untitled

a guest
Apr 18th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. import paramiko
  2. p = paramiko.SSHClient()
  3. p.set_missing_host_key_policy(paramiko.AutoAddPolicy())
  4. p.connect('172.31.26.176',port =22, username = '', password='')
  5. stdin, stdout, stderr = p.exec_command('uname -a')
  6. opt = stdout.readlines()
  7. opt ="".join(opt)
  8. print(opt)
Add Comment
Please, Sign In to add comment