[ssh] disable look_for_keys in paramiko

Signed-off-by: XiaoliChan <2209553467@qq.com>
main
XiaoliChan 2023-10-21 23:38:06 +08:00
parent 35cdf414b7
commit 425e83c4c4
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,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.args.port, timeout=self.args.ssh_timeout)
self.conn.connect(self.host, port=self.args.port, timeout=self.args.ssh_timeout, look_for_keys=False)
except AuthenticationException:
return True
except SSHException: