# nodus ssh

> Connect to a Workspace over SSH

Source: https://nodus-platform-site.pages.dev/docs/reference/cli/nodus_ssh/
Build revision: 211ad9f836655b1c3a2668c4693e442471f28614

## nodus ssh

Connect to a Workspace over SSH

### Synopsis

ssh uses the account-bound connection rule installed by nodus login for ...nodus (so plain ssh, scp, rsync and VS Code Remote-SSH work too) and connects. A Workspace stopped by idle, schedule or credits starts when you connect; one you stopped needs `nodus start`. Sign in once per computer with nodus login to create a local SSH key and register only its public key. Use –setup to repair SSH enrollment without starting or connecting to any Workspace.

```plaintext
nodus ssh workspace/NAME [-- COMMAND...] [flags]
```

### Examples

```plaintext
  nodus login
  nodus ssh workspace/lab
  nodus ssh workspace/lab -- nvidia-smi
```

### Options

```plaintext
      --config   Print the ~/.ssh/config entry instead of connecting
  -h, --help     help for ssh
      --setup    Repair this account's SSH setup for all Workspaces without starting or connecting
```

### Options inherited from parent commands

```plaintext
      --context string   Context from the config file to use
      --org string       Organization (selects the context for that org)
  -p, --project string   Project to work in
  -v, --verbose          Log each API request (never credentials)
```

### SEE ALSO

* [nodus](https://nodus-platform-site.pages.dev/docs/reference/cli/nodus/) - Run compute Jobs on Nodus
