Skip to content

Commit 049e557

Browse files
authored
fix: set default sshMaxTimeout to 60s (#7532)
* fix: set default sshMaxTimeout to 60s * fix
1 parent 224d25d commit 049e557

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cli/agent.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ func (r *RootCmd) workspaceAgent() *clibase.Cmd {
263263
},
264264
{
265265
Flag: "ssh-max-timeout",
266-
Default: "0",
266+
Default: "60s",
267267
Env: "CODER_AGENT_SSH_MAX_TIMEOUT",
268268
Description: "Specify the max timeout for a SSH connection.",
269269
Value: clibase.DurationOf(&sshMaxTimeout),

cli/testdata/coder_agent_--help.golden

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Starts the Coder workspace agent.
2121
--prometheus-address string, $CODER_AGENT_PROMETHEUS_ADDRESS (default: 127.0.0.1:2112)
2222
The bind address to serve Prometheus metrics.
2323

24-
--ssh-max-timeout duration, $CODER_AGENT_SSH_MAX_TIMEOUT (default: 0)
24+
--ssh-max-timeout duration, $CODER_AGENT_SSH_MAX_TIMEOUT (default: 60s)
2525
Specify the max timeout for a SSH connection.
2626

2727
--tailnet-listen-port int, $CODER_AGENT_TAILNET_LISTEN_PORT (default: 0)

0 commit comments

Comments
 (0)