config-ssh
coder config-ssh
Add an SSH Host entry for your workspaces "ssh coder.workspace"
coder config-ssh [flags]
Examples
- You can use -o (or --ssh-option) so set SSH options to be used for all your
workspaces:
[48;2;235;229;236m [0m[38;2;255;70;113;48;2;235;229;236m$ coder config-ssh -o ForwardAgent=yes[0m[48;2;235;229;236m [0m
- You can use --dry-run (or -n) to see the changes that would be made:
[48;2;235;229;236m [0m[38;2;255;70;113;48;2;235;229;236m$ coder config-ssh --dry-run[0m[48;2;235;229;236m [0m
Options
-n, --dry-run Perform a trial run with no changes made, showing a diff at the end.
-h, --help help for config-ssh
--ssh-config-file string Specifies the path to an SSH config.
[38;2;88;88;88mConsumes $CODER_SSH_CONFIG_FILE[0m (default "~/.ssh/config")
-o, --ssh-option stringArray Specifies additional SSH options to embed in each host stanza.
--use-previous-options Specifies whether or not to keep options from previous run of config-ssh.
[38;2;88;88;88mConsumes $CODER_SSH_USE_PREVIOUS_OPTIONS[0m
-y, --yes Bypass prompts
Options inherited from parent commands
--global-config coder Path to the global coder config directory.
[38;2;88;88;88mConsumes $CODER_CONFIG_DIR[0m (default "/home/coder/.config/coderv2")
--header stringArray HTTP headers added to all requests. Provide as "Key=Value".
[38;2;88;88;88mConsumes $CODER_HEADER[0m
--no-feature-warning Suppress warnings about unlicensed features.
[38;2;88;88;88mConsumes $CODER_NO_FEATURE_WARNING[0m
--no-version-warning Suppress warning when client and server versions do not match.
[38;2;88;88;88mConsumes $CODER_NO_VERSION_WARNING[0m
--token string Specify an authentication token. For security reasons setting CODER_SESSION_TOKEN is preferred.
[38;2;88;88;88mConsumes $CODER_SESSION_TOKEN[0m
--url string URL to a deployment.
[38;2;88;88;88mConsumes $CODER_URL[0m
-v, --verbose Enable verbose output.
[38;2;88;88;88mConsumes $CODER_VERBOSE[0m
SEE ALSO
- coder -
Auto generated by spf13/cobra on 26-Jan-2023
See an opportunity to improve our docs? Make an edit.