diff --git a/paramiko-pythonssh1.py b/paramiko-pythonssh1.py index 05bf3ea..503733a 100644 --- a/paramiko-pythonssh1.py +++ b/paramiko-pythonssh1.py @@ -7,7 +7,7 @@ ssh_client = paramiko.SSHClient() ssh_client.set_missing_host_key_policy(paramiko.AutoAddPolicy()) -ssh_client.connect(hostname=ip_address,username=username,password=password) +ssh_client.connect(hostname=ip_address,username=username,password=password,look_for_keys=False) print "Successful connection", ip_address @@ -33,4 +33,4 @@ output = remote_connection.recv(65535) print output -ssh_client.close \ No newline at end of file +ssh_client.close