SSH Access
Every Rigbox workspace is a full Linux VM with SSH access. Connect from any terminal to get a shell or transfer files.Prerequisites
Before connecting via SSH, you need:- An SSH key pair on your local machine (e.g.,
~/.ssh/id_ed25519) - A Rigbox account with an API key
- At least one running workspace
Register an SSH Key
To connect via SSH, you first need to register your public key with Rigbox.Via the API
Via the CLI
If you have the Rigbox CLI installed:~/.ssh/id_ed25519.pub) and registers it automatically.
Sync Keys to a Workspace
When you create a workspace, your registered SSH keys are typically synced automatically. If you add a new key while a workspace is already running, sync it manually:~/.ssh/authorized_keys file.
Keys are synced automatically on workspace start for most templates. You only need the sync endpoint if you add a key to an already-running workspace.
Connect to a Workspace
When you create a workspace, Rigbox gives you an SSH command in this format:my-project with ID ws-ctbxi8lb in the eu-west-1 region:
Region-direct vs gateway routing
There are two ways to connect:| Method | Example | Latency |
|---|---|---|
| Region-direct | ssh user@eu-west-1.rigbox.dev | Lowest — connects directly to the compute node in your workspace’s region |
| Gateway | ssh user@rigbox.dev | Higher — routes through the central gateway, which forwards to the correct region |
eu-west-1.rigbox.dev) for the best experience. The gateway hostname (rigbox.dev) works from anywhere but adds latency proportional to the distance between the gateway and your workspace’s region.
The region is part of the SSH command shown in the dashboard. As Rigbox expands to more regions, your workspace will always include the correct region hostname.
Specify an identity file
If your key is not in the default location, specify it explicitly:SSH config shortcut
Add this to your~/.ssh/config for easier access:
File Transfer
Usescp to transfer files between your local machine and a workspace.
Upload a file
Download a file
Upload a directory
Using rsync
For larger transfers or syncing directories,rsync is more efficient:
Managing SSH Keys
List your registered keys
List keys synced to a workspace
authorized_keys file.
Remove a key
Troubleshooting
Connection refused
If you getConnection refused, verify:
- Your workspace is running (check with
GET /api/workspaces/{id}orrig ls) - Your SSH key is registered and synced
- You’re using the correct username format:
{workspace-name}-{id}@{region}.rigbox.dev
Permission denied
If you getPermission denied (publickey):
- Check that your key is registered:
GET /api/ssh-keys - Sync keys to the workspace:
POST /api/workspaces/{id}/ssh-keys/sync - Verify you are using the correct identity file:
ssh -v my-project-ctbxi8lb@{region}.rigbox.dev
Slow connection
If connections feel slow:- Check your network connection
- Try connecting with
-o ServerAliveInterval=60to prevent timeouts - For file transfers, prefer
rsyncoverscpfor large datasets
API Reference
- Add SSH Key — Register a new SSH key
- List SSH Keys — List registered SSH keys
- Delete SSH Key — Remove an SSH key
- Sync Workspace SSH Keys — Sync keys to a workspace
- List Workspace SSH Keys — List keys on a workspace