Skip to content

Commit e8de79b

Browse files
ssh: Fix connection timeout handling
Pass the timeout also as paramiko.SshClient(banner_timeout=...) parameter so that we don't get the following exception too early: SSH logic error: Error reading SSH protocol banner
1 parent 9c4f09b commit e8de79b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

devlib/utils/ssh.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,7 @@ def _make_client(self):
432432
password=self.password,
433433
key_filename=self.keyfile,
434434
timeout=self.timeout,
435+
banner_timeout=self.timeout,
435436
look_for_keys=check_ssh_keys,
436437
allow_agent=check_ssh_keys
437438
)

0 commit comments

Comments
 (0)