Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ssh = paramiko.SSHClient()
- ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
- ssh.connect('10.1.1.10', username='macB',password='macBpwd')
- stdin, stdout, stderr = ssh.exec_command("ssh macA@10.1.1.9")
- stdin.write('macApwdn')
- stdin.flush()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement