diff --git a/cli/agent.go b/cli/agent.go index da39f1caa22b9..04626d2d4e42a 100644 --- a/cli/agent.go +++ b/cli/agent.go @@ -263,7 +263,7 @@ func (r *RootCmd) workspaceAgent() *clibase.Cmd { }, { Flag: "ssh-max-timeout", - Default: "0", + Default: "60s", Env: "CODER_AGENT_SSH_MAX_TIMEOUT", Description: "Specify the max timeout for a SSH connection.", Value: clibase.DurationOf(&sshMaxTimeout), diff --git a/cli/testdata/coder_agent_--help.golden b/cli/testdata/coder_agent_--help.golden index 5b9e6f394076e..399a661950a2c 100644 --- a/cli/testdata/coder_agent_--help.golden +++ b/cli/testdata/coder_agent_--help.golden @@ -21,7 +21,7 @@ Starts the Coder workspace agent. --prometheus-address string, $CODER_AGENT_PROMETHEUS_ADDRESS (default: 127.0.0.1:2112) The bind address to serve Prometheus metrics. - --ssh-max-timeout duration, $CODER_AGENT_SSH_MAX_TIMEOUT (default: 0) + --ssh-max-timeout duration, $CODER_AGENT_SSH_MAX_TIMEOUT (default: 60s) Specify the max timeout for a SSH connection. --tailnet-listen-port int, $CODER_AGENT_TAILNET_LISTEN_PORT (default: 0)