For some reason Paramiko’s SSHClient.exec_command has an issue with setting timeouts. For example, despite passing the timeout=3 to the client.connect, the code below will not timeout if the connection to the server is flaky. client = paramiko.SSHClient() client._policy = paramiko.AutoAddPolicy() … Continue reading
July 6, 2011
by admin
0 comments