Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #CREATE SSH CONNECTION.
- import string
- def main():
- port = '22'
- ip = '192.168.0.30' # unbuntu.
- username = 'username'
- password = 'password'
- timeout = 5
- client_policy = paramiko.AutoAddPolicy()
- client = paramiko.SSHClient();
- client.set_missing_host_key_policy(client_policy)
- client.connect(ip, username=username, password=password)
- print(client)
- if __name__ == '__main__':
- main()
Add Comment
Please, Sign In to add comment