mirror of
https://github.com/coder/coder.git
synced 2025-07-15 22:20:27 +00:00
chore: add documentation to the coder ssh command regarding feature parity with ssh (#17827)
Closes [coder/internal#628](https://github.com/coder/internal/issues/628) --------- Co-authored-by: M Atif Ali <atif@coder.com>
This commit is contained in:
@ -92,6 +92,7 @@ func (r *RootCmd) ssh() *serpent.Command {
|
||||
Annotations: workspaceCommand,
|
||||
Use: "ssh <workspace>",
|
||||
Short: "Start a shell into a workspace",
|
||||
Long: "This command does not have full parity with the standard SSH command. For users who need the full functionality of SSH, create an ssh configuration with `coder config-ssh`.",
|
||||
Middleware: serpent.Chain(
|
||||
serpent.RequireNArgs(1),
|
||||
r.InitClient(client),
|
||||
|
4
cli/testdata/coder_ssh_--help.golden
vendored
4
cli/testdata/coder_ssh_--help.golden
vendored
@ -5,6 +5,10 @@ USAGE:
|
||||
|
||||
Start a shell into a workspace
|
||||
|
||||
This command does not have full parity with the standard SSH command. For
|
||||
users who need the full functionality of SSH, create an ssh configuration with
|
||||
`coder config-ssh`.
|
||||
|
||||
OPTIONS:
|
||||
--disable-autostart bool, $CODER_SSH_DISABLE_AUTOSTART (default: false)
|
||||
Disable starting the workspace automatically when connecting via SSH.
|
||||
|
6
docs/reference/cli/ssh.md
generated
6
docs/reference/cli/ssh.md
generated
@ -9,6 +9,12 @@ Start a shell into a workspace
|
||||
coder ssh [flags] <workspace>
|
||||
```
|
||||
|
||||
## Description
|
||||
|
||||
```console
|
||||
This command does not have full parity with the standard SSH command. For users who need the full functionality of SSH, create an ssh configuration with `coder config-ssh`.
|
||||
```
|
||||
|
||||
## Options
|
||||
|
||||
### --stdio
|
||||
|
@ -33,6 +33,11 @@ coder ssh my-workspace
|
||||
|
||||
Or, you can configure plain SSH on your client below.
|
||||
|
||||
> [!Note]
|
||||
> The `coder ssh` command does not have full parity with the standard
|
||||
> SSH command. For users who need the full functionality of SSH, use the
|
||||
> configuration method below.
|
||||
|
||||
### Configure SSH
|
||||
|
||||
Coder generates [SSH key pairs](../../admin/security/secrets.md#ssh-keys) for
|
||||
|
Reference in New Issue
Block a user