Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit bf7f71a

Browse files
authored
coder: remove some unnecessary SSH settings (#353)
- Removed ServerAliveInterval and ServerAliveCountMax from config-ssh settings. These settings are opinionated about when idle sessions should disconnect and should be inherited from the user's global settings. 'coder config-ssh' should only write configuration options that are necessary for 'coder sh' and its variants to succeed.
1 parent bce838d commit bf7f71a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

internal/cmd/configssh.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,6 @@ func makeSSHConfig(host, userName, workspaceName, privateKeyFilepath string, tun
230230
ConnectTimeout=0
231231
IdentitiesOnly yes
232232
IdentityFile="%s"
233-
ServerAliveInterval 60
234-
ServerAliveCountMax 3
235233
`, workspaceName, workspaceName, workspaceName, privateKeyFilepath)
236234
}
237235

@@ -243,8 +241,6 @@ func makeSSHConfig(host, userName, workspaceName, privateKeyFilepath string, tun
243241
ConnectTimeout=0
244242
IdentitiesOnly yes
245243
IdentityFile="%s"
246-
ServerAliveInterval 60
247-
ServerAliveCountMax 3
248244
`, workspaceName, host, userName, workspaceName, privateKeyFilepath)
249245
}
250246

0 commit comments

Comments
 (0)