devlib icon indicating copy to clipboard operation
devlib copied to clipboard

SshConnection does not honor its timeout parameter

Open douglas-raillard-arm opened this issue 7 months ago • 0 comments

The timeout parameter on connection types is supposed to be how long to wait when trying to establish a connection to the target. That parameter is currently passed to paramiko's SSHClient() timeout parameter, which is documented as:

timeout (float) – an optional timeout (in seconds) for the TCP connect

https://docs.paramiko.org/en/stable/api/client.html

Long before that timeout, we get the following error:

SSH logic error: Error reading SSH protocol banner

Some other timeouts (banner_timeout ?) probably need to be set to achieve the behavior we want in devlib.

douglas-raillard-arm avatar Jun 04 '25 14:06 douglas-raillard-arm