From a98bfab28d8a8d44e6a20c8b05b0b736e4d145ee Mon Sep 17 00:00:00 2001 From: Alexander Neff Date: Sun, 19 May 2024 08:51:42 -0400 Subject: [PATCH] Add timeout to the plaintext login --- nxc/protocols/ssh.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nxc/protocols/ssh.py b/nxc/protocols/ssh.py index 5fa94b18..2dbfd101 100644 --- a/nxc/protocols/ssh.py +++ b/nxc/protocols/ssh.py @@ -195,6 +195,7 @@ class ssh(connection): username=username, passphrase=password if password != "" else None, key_filename=private_key if private_key else self.args.key_file, + timeout=self.args.ssh_timeout, look_for_keys=False, allow_agent=False, ) @@ -213,6 +214,7 @@ class ssh(connection): port=self.port, username=username, password=password, + timeout=self.args.ssh_timeout, look_for_keys=False, allow_agent=False, )