Advertisement
Guest User

Untitled

a guest
Apr 20th, 2014
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. ssh = paramiko.SSHClient()
  2. ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
  3. ssh.connect('10.1.1.10', username='macB',password='macBpwd')
  4. stdin, stdout, stderr = ssh.exec_command("ssh macA@10.1.1.9")
  5. stdin.write('macApwdn')
  6. stdin.flush()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement