You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Support SSH keepalive settings in interactive mode
Fix#168: Interactive mode now properly honors SSH keepalive configuration
(--server-alive-interval and --server-alive-count-max CLI options, SSH config
file settings, and YAML config file settings).
Changes:
- Add ssh_connection_config field to InteractiveCommand struct
- Create build_ssh_connection_config helper in dispatcher for code reuse
- Update establish_connection to use Client::connect_with_ssh_config
- Pass SshConnectionConfig to JumpHostChain for jump host connections
- Add connection health check timeout to PTY session loop
- Add interactive mode keepalive tests to ssh_keepalive_test.rs
This fix ensures that interactive mode connections:
1. Honor CLI --server-alive-interval/--server-alive-count-max options
2. Honor SSH config file ServerAliveInterval/ServerAliveCountMax settings
3. Honor YAML config file server_alive_interval/server_alive_count_max settings
4. Apply keepalive settings to both direct and jump host connections
5. Have periodic health checks to detect dead connections
0 commit comments