From 8cd85def45ffdf54a55395ad628be0c19f8b7d59 Mon Sep 17 00:00:00 2001 From: NK Date: Wed, 8 Nov 2023 00:55:34 +0100 Subject: [PATCH] disable use of ssh_agent in paramiko, first fix for #105 --- nxc/protocols/ssh.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nxc/protocols/ssh.py b/nxc/protocols/ssh.py index 0a81f2ad..ddd59f32 100644 --- a/nxc/protocols/ssh.py +++ b/nxc/protocols/ssh.py @@ -65,7 +65,7 @@ class ssh(connection): self.conn = paramiko.SSHClient() self.conn.set_missing_host_key_policy(paramiko.AutoAddPolicy()) try: - self.conn.connect(self.host, port=self.port, timeout=self.args.ssh_timeout, look_for_keys=False) + self.conn.connect(self.host, port=self.port, timeout=self.args.ssh_timeout, look_for_keys=False, allow_agent=False) except AuthenticationException: return True except SSHException: