no longer require controlmaster for interactive ssh

we only run one ssh command, so control master is not needed
This commit is contained in:
Jörg Thalheim
2025-05-27 15:38:28 +02:00
parent 31274212a8
commit 75dd389c2c
2 changed files with 2 additions and 3 deletions

View File

@@ -88,8 +88,7 @@ def ssh_shell_from_deploy(
deploy_info: DeployInfo, runtime: AsyncRuntime, host_key_check: HostKeyCheck
) -> None:
if host := find_reachable_host(deploy_info, host_key_check):
with host.ssh_control_master() as ssh:
ssh.interactive_ssh()
host.interactive_ssh()
else:
log.info("Could not reach host via clearnet 'addrs'")
log.info(f"Trying to reach host via tor '{deploy_info.tor}'")