[paramiko] SSHClient and timeouts
Robey Pointer
robey at lag.net
Fri Oct 13 11:03:25 PDT 2006
On 9 Oct 2006, at 7:45, Mike McGrath wrote:
> Is there any way to set a timeout while using SSHClient?
If you're using invoke_shell(), the returned object is a Channel, so
you can call set_timeout() on it.
If you're using exec_command(), it's less obvious: The returned file
objects have a "channel" attribute that you can use to access the
underlying channel, and set a timeout that way.
Hope that helps,
robey
More information about the paramiko
mailing list