Skip to content

Commit a98bfab

Browse files
committed
Add timeout to the plaintext login
1 parent 5197a0e commit a98bfab

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

nxc/protocols/ssh.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ def plaintext_login(self, username, password, private_key=""):
195195
username=username,
196196
passphrase=password if password != "" else None,
197197
key_filename=private_key if private_key else self.args.key_file,
198+
timeout=self.args.ssh_timeout,
198199
look_for_keys=False,
199200
allow_agent=False,
200201
)
@@ -213,6 +214,7 @@ def plaintext_login(self, username, password, private_key=""):
213214
port=self.port,
214215
username=username,
215216
password=password,
217+
timeout=self.args.ssh_timeout,
216218
look_for_keys=False,
217219
allow_agent=False,
218220
)

0 commit comments

Comments
 (0)