I have a simple script that used to work but not any longer. It now hangs during the "load_system_host_keys()". I have even tried using user parameters, which is commented out, but still it hangs. Any idea why it can't connect either via ssh key or user info? Your input is greatly appreciated. import paramiko ssh_client = paramiko.SSHClient() ssh_client.set_missing_host_key_policy(paramiko.AutoAddPolicy()) ssh_client.load_system_host_keys() ssh_client.connect(device) # ssh_client.connect(device,port=22,username=‘username’,password=‘password’) remote_conn = ssh_client.invoke_shell() print "Interactive SSH session established" remote_conn.send('set cli pager off \n') remote_conn.send('set cli config-output-format set \n') remote_conn.send('configure \n') remote_conn.send('show \n') remote_conn.send('exit \n') remote_conn.send('exit \n')
... View more