Guest User

Untitled

a guest
Jul 20th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. try:
  2. client = SSHClient()
  3. client.load_system_host_keys()
  4. client.connect('ssh.example.com')
  5. stdin, stdout, stderr = client.exec_command('ls -l')
  6. finally:
  7. if client:
  8. client.close()
Add Comment
Please, Sign In to add comment