Guest User

Untitled

a guest
Jan 17th, 2019
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. import paramiko
  2.  
  3. #Set Host connection variables
  4. host = '10.0.0.10'
  5. username = 'root'
  6. password = 'Password_123'
  7. port = 22
  8.  
  9. #Connect to SSL Host
  10. ssh = paramiko.SSHClient()
  11. #ssh.load_host_keys()
  12. ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
  13. ssh.connect(host, port=port, username=username, password=password)
  14.  
  15. #Confirm connection
  16. print("Connected to host {} on port {} as user {}".format (host,port,username))
Add Comment
Please, Sign In to add comment