Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import paramiko
- import time
- ssh = paramiko.SSHClient()
- ssh.set_missing_host_key_policy( paramiko.AutoAddPolicy() )
- ssh.connect( hostname='192.168.2.121', username='omp', password='', timeout=5, port=22 )
- channel = ssh.invoke_shell()
- channel.send( '<get_version/>\n' )
- time.sleep(1)
- output=channel.recv( 2048 )
- print( output )
- ssh.close(
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement