Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try:
- ssh=paramiko.SSHClient()
- ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
- ssh.connect(ip,username=user,password=passw,timeout=18)
- cmd=ssh.get_transport().open_session()
- cmd.settimeout(30)
- cmd.exec_command('id')
- date=cmd.recv(1024)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement