Guest User

Untitled

a guest
Jul 20th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. import paramiko
  2. ssh = paramiko.SSHClient()
  3. ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
  4. ssh.connect(hostname, username='abc', password='password')
  5. stdin, stdout, stderr = ssh.exec_command('ssh xyz@host1 ls')
Add Comment
Please, Sign In to add comment