Fix demo re #200
This commit is contained in:
parent
152f126869
commit
d4e18e1d1c
|
@ -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