Fix demo re #200
This commit is contained in:
parent
152f126869
commit
e0d4fdbc5d
|
@ -63,7 +63,7 @@ password = getpass.getpass('Password for %s@%s: ' % (username, hostname))
|
|||
try:
|
||||
client = paramiko.SSHClient()
|
||||
client.load_system_host_keys()
|
||||
client.set_missing_host_key_policy(paramiko.WarningPolicy)
|
||||
client.set_missing_host_key_policy(paramiko.WarningPolicy())
|
||||
print '*** Connecting...'
|
||||
client.connect(hostname, port, username, password)
|
||||
chan = client.invoke_shell()
|
||||
|
|
Loading…
Reference in New Issue