Python method for establishing SSH connection

From , 5 Years ago, written in Python, viewed 86 times.
URL https://pastebin.vip/view/fd9dd764
  1. import paramiko
  2.  
  3. client = paramiko.SSHClient()
  4. client.set_missing_host_key_policy(paramiko.AutoAddPolicy())
  5. client.connect('192.168.8.248', 22, username='root', password='password', timeout=4)
  6. stdin, stdout, stderr = client.exec_command('ls -l')
  7. for std in stdout.readlines():
  8.    print std,
  9. client.close()
  10.  
  11.  
  12. #//python/5631

Reply to "Python method for establishing SSH connection"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website