Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import paramiko
- #Set Host connection variables
- host = '10.0.0.10'
- username = 'root'
- password = 'Password_123'
- port = 22
- #Connect to SSL Host
- ssh = paramiko.SSHClient()
- #ssh.load_host_keys()
- ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
- ssh.connect(host, port=port, username=username, password=password)
- #Confirm connection
- print("Connected to host {} on port {} as user {}".format (host,port,username))
Add Comment
Please, Sign In to add comment