feat: add --network-info-dir and --network-info-interval flags to coder ssh (#16078)

This is the first in a series of PRs to enable `coder ssh` to replace
`coder vscodessh`.

This change adds `--network-info-dir` and `--network-info-interval`
flags to the `ssh` subcommand. These were formerly only available with
the `vscodessh` subcommand.

Subsequent PRs will add a `--ssh-host-prefix` flag to the ssh
subcommand, and adjust the log file naming to contain the parent PID.
This commit is contained in:
Aaron Lehmann
2025-01-13 18:29:31 -06:00
committed by GitHub
parent c2b55346ac
commit 838ee3b244
5 changed files with 309 additions and 163 deletions
+17
View File
@@ -103,6 +103,23 @@ Enable remote port forwarding (remote_port:local_address:local_port).
Set environment variable(s) for session (key1=value1,key2=value2,...).
### --network-info-dir
| | |
|------|---------------------|
| Type | <code>string</code> |
Specifies a directory to write network information periodically.
### --network-info-interval
| | |
|---------|-----------------------|
| Type | <code>duration</code> |
| Default | <code>5s</code> |
Specifies the interval to update network information.
### --disable-autostart
| | |