commit
426e446eb7
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue