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

Commit 8ff2d5f

Browse files
committed
Add server alive configuration
1 parent 49e3686 commit 8ff2d5f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: cmd/coder/config_ssh.go

+2
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)