diff --git a/rl_cli/commands/devbox.py b/rl_cli/commands/devbox.py index 16b629d..aceabe9 100644 --- a/rl_cli/commands/devbox.py +++ b/rl_cli/commands/devbox.py @@ -294,6 +294,8 @@ async def ssh(args) -> None: User {user} IdentityFile {keyfile_path} StrictHostKeyChecking no + ServerAliveInterval 15 + ServerAliveCountMax 3 ProxyCommand openssl s_client -quiet -servername %h -connect {ssh_url()} 2>/dev/null """ ) @@ -310,6 +312,10 @@ async def ssh(args) -> None: f"ProxyCommand={proxy_command}", "-o", "StrictHostKeyChecking=no", + "-o", + "ServerAliveInterval=15", + "-o", + "ServerAliveCountMax=3", f"{user}@{url}", ] subprocess.run(command)