Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import paramiko, socket
- ssh = paramiko.SSHClient()
- ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
- ssh.connect(router, username=abc, password=abc, timeout=5)
- ssh = ssh.invoke_shell()
- output = ssh.recv(1000)
- print output
- Router#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement