Skip to content

feat: add SSH keepalive defaults (ServerAliveInterval/ServerAliveCountMax)#885

Open
EhabY wants to merge 1 commit intomainfrom
feat/ssh-keepalive-defaults
Open

feat: add SSH keepalive defaults (ServerAliveInterval/ServerAliveCountMax)#885
EhabY wants to merge 1 commit intomainfrom
feat/ssh-keepalive-defaults

Conversation

@EhabY
Copy link
Copy Markdown
Collaborator

@EhabY EhabY commented Apr 14, 2026

  • Adds ServerAliveInterval=10 and ServerAliveCountMax=3 as defaults for all Coder SSH connections. This detects dead connections within ~30 seconds, helping keep sessions alive through NATs and firewalls.
  • Renames SSHValues to SshValues for naming consistency.
  • Extracts a shared BASE_SSH_VALUES test fixture to reduce boilerplate (net -67 lines in tests).

Set ServerAliveInterval=10 and ServerAliveCountMax=3 as defaults for all
Coder SSH connections. This detects dead connections within ~30 seconds,
which helps keep sessions alive through NATs and firewalls.

Also renames SSHValues to SshValues for consistency and extracts a
shared BASE_SSH_VALUES test fixture to reduce boilerplate across tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant