From e7aa8c8ed333d9037d98791175233e6980cd35d7 Mon Sep 17 00:00:00 2001 From: Alex VanTol Date: Thu, 9 Mar 2023 12:52:42 -0600 Subject: [PATCH] fix(ssh): use libraries functionality for automatically adding ssh keys --- fence/sync/sync_users.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fence/sync/sync_users.py b/fence/sync/sync_users.py index a46e45c98..0639a1679 100644 --- a/fence/sync/sync_users.py +++ b/fence/sync/sync_users.py @@ -409,7 +409,7 @@ def _get_from_sftp_with_proxy(self, server, path): with paramiko.SSHClient() as client: client.set_log_channel(self.logger.name) - client.set_missing_host_key_policy(paramiko.WarningPolicy()) + client.set_missing_host_key_policy(paramiko.AutoAddPolicy()) parameters = { "hostname": str(server.get("host", "")), "username": str(server.get("username", "")),