From 1402ea6794293f4061c59be3240994e839d303ce Mon Sep 17 00:00:00 2001 From: Kyr Shatskyy Date: Thu, 16 Jan 2025 22:30:52 +0100 Subject: [PATCH] orchestra/connection: use ssh auto add policy when tunneling Signed-off-by: Kyr Shatskyy --- teuthology/orchestra/connection.py | 1 + 1 file changed, 1 insertion(+) diff --git a/teuthology/orchestra/connection.py b/teuthology/orchestra/connection.py index 9a6443dc2..8c39c3d38 100644 --- a/teuthology/orchestra/connection.py +++ b/teuthology/orchestra/connection.py @@ -113,6 +113,7 @@ def connect(user_at_host, host_key=None, keep_alive=False, timeout=60, log.debug(f"Local port for host {host} is {local_port}") connect_args['hostname'] = '127.0.0.1' connect_args['port'] = local_port + ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) break key_filename = key_filename or config.ssh_key