diff --git a/demos/demo_simple.py b/demos/demo_simple.py index 231da8d..a1a90e8 100755 --- a/demos/demo_simple.py +++ b/demos/demo_simple.py @@ -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()