> ## Documentation Index
> Fetch the complete documentation index at: https://docs.celesto.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# smolvm sandbox ssh

> Use smolvm sandbox ssh to open a real SSH session into a sandbox when you need SSH behavior instead of the faster SmolVM shell.

`smolvm sandbox ssh` opens an interactive SSH session to a sandbox. Use it when you need SSH-specific behavior, such as SSH agent forwarding, a custom key, or a user account other than `root`.

## Synopsis

```bash theme={null}
smolvm sandbox ssh <sandbox> [OPTIONS]
```

## Arguments

<ParamField path="sandbox" type="string" required>
  Name or ID of the sandbox to connect to.
</ParamField>

## Options

<ParamField path="--ssh-key" type="string">
  Path to the SSH private key.
</ParamField>

<ParamField path="--ssh-user" type="string" default="root">
  SSH user inside the sandbox.
</ParamField>

<ParamField path="--boot-timeout" type="number" default="30">
  Seconds to wait if SmolVM needs to start the sandbox before connecting.
</ParamField>

## Examples

### Connect to a sandbox

```bash theme={null}
smolvm sandbox ssh my-sandbox
```

### Use a custom key

```bash theme={null}
smolvm sandbox ssh my-sandbox --ssh-key ~/.ssh/work_sandbox
```

### Connect as another user

```bash theme={null}
smolvm sandbox ssh ubuntu-box --ssh-user ubuntu
```

## Shell versus SSH

Use [`smolvm sandbox shell`](/smolvm/cli/shell) for the fastest interactive shell on recent Linux images. It uses the SmolVM guest agent when available. Use `smolvm sandbox ssh` when you specifically need SSH.

## Related commands

* [`smolvm sandbox shell`](/smolvm/cli/shell) - Open the fast shell
* [`smolvm sandbox create`](/smolvm/cli/create) - Create a sandbox
* [`smolvm sandbox list`](/smolvm/cli/list) - Find sandbox names
