Skip to content

Commit

Permalink
orchestra/connection: use ssh auto add policy when tunneling
Browse files Browse the repository at this point in the history
Signed-off-by: Kyr Shatskyy <[email protected]>
  • Loading branch information
Kyr Shatskyy committed Jan 16, 2025
1 parent df879eb commit 1402ea6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions teuthology/orchestra/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1402ea6

Please sign in to comment.