Files
coder/docs/cli/coder_config-ssh.md
Steven Masley fe247c86eb feat: Add deployment side config-ssh options (#6613)
* feat: Allow setting deployment wide ssh config settings
* feat: config-ssh respects deployment ssh config
* The '.' is now configurable
* Move buildinfo into deployment.go
2023-03-16 13:03:37 -05:00

1.3 KiB

coder config-ssh

Add an SSH Host entry for your workspaces "ssh coder.workspace"

Usage

coder config-ssh [flags]

Examples

  - You can use -o (or --ssh-option) so set SSH options to be used for all your
    workspaces:

      $ coder config-ssh -o ForwardAgent=yes

  - You can use --dry-run (or -n) to see the changes that would be made:

      $ coder config-ssh --dry-run

Flags

--dry-run, -n

Perform a trial run with no changes made, showing a diff at the end.

Default false

--ssh-config-file

Specifies the path to an SSH config.

Consumes $CODER_SSH_CONFIG_FILE
Default ~/.ssh/config

--ssh-host-prefix

Override the default host prefix.

--ssh-option, -o

Specifies additional SSH options to embed in each host stanza.

Default []

--use-previous-options

Specifies whether or not to keep options from previous run of config-ssh.

Consumes $CODER_SSH_USE_PREVIOUS_OPTIONS
Default false

--yes, -y

Bypass prompts

Default false