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

Commit 7744252

Browse files
authored
Merge pull request #30 from cdr/ssh-timeout-fix
Add server alive configuration
2 parents 49e3686 + 8ff2d5f commit 7744252

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmd/coder/config_ssh.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,8 @@ func (cmd *configSSHCmd) makeConfig(host, userName, envName string) string {
158158
StrictHostKeyChecking no
159159
ConnectTimeout=0
160160
IdentityFile=%s
161+
ServerAliveInterval 60
162+
ServerAliveCountMax 3
161163
`, envName, host, userName, envName, privateKeyFilepath)
162164
}
163165

0 commit comments

Comments
 (0)