disable use of ssh_agent in paramiko, first fix for #105

main
NK 2023-11-08 00:55:34 +01:00
parent e07b3e45ba
commit 8cd85def45
1 changed files with 1 additions and 1 deletions

View File

@ -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: