Fix demo re #200

This commit is contained in:
Jeff Forcier 2013-09-27 21:13:21 -07:00
parent 152f126869
commit d4e18e1d1c
1 changed files with 1 additions and 1 deletions

View File

@ -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()