From ca6720df934f7f4633497b94af1419debd665bf5 Mon Sep 17 00:00:00 2001 From: Rob von Behren Date: Tue, 4 Nov 2025 13:32:58 -0800 Subject: [PATCH] update ssh options to send keepalive messages; avoids premature ssh shutdown --- rl_cli/commands/devbox.py | 6 ++++++ 1 file changed, 6 insertions(+) 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)