SSH, VS Code and Cursor
Every sandbox made from a Stillbox agent type accepts SSH through Stillbox itself. Nothing is exposed to the internet: your SSH connection travels inside the Stillbox API, which checks your API key (or sign-in) and that you may work in the sandbox, exactly as it does for the browser terminal. You don’t need an SSH key.
Install the command-line tool and sign in with stillbox login first.
A shell
Section titled “A shell”stillbox ssh <sandbox> # an interactive shellstillbox ssh <sandbox> 'make test' # one command; its exit code is yoursstillbox ssh <sandbox> -L 3000:localhost:3000 # reach a dev server in the sandbox on your port 3000stillbox ssh runs your own ssh, so its options work. A sleeping sandbox wakes when you connect, and stays awake
while you’re connected.
VS Code, Cursor, scp and rsync
Section titled “VS Code, Cursor, scp and rsync”Add the sandbox to your SSH settings once:
stillbox ssh-config <sandbox> >> ~/.ssh/configThen:
- VS Code or Cursor: Remote-SSH: Connect to Host… and pick
stillbox-<sandbox>. The editor installs its server in the sandbox the first time, so the sandbox needs internet access to the editor’s download site (for VS Code,update.code.visualstudio.comand*.vscode-cdn.net) if you limit its sites. - scp and sftp:
scp report.pdf stillbox-<sandbox>:copies into the sandbox’s home folder. - rsync:
rsync -a ./site/ stillbox-<sandbox>:site/.
The entry uses its own known-hosts file, ~/.ssh/known_hosts_stillbox; each sandbox keeps the same host key for
its life.
Who can connect
Section titled “Who can connect”The same people who can open the sandbox’s terminal: its organization’s members who see it, and only its creator
for a private sandbox. API keys need the use level. Each connection is
recorded in the audit log. Forwarding reaches only ports inside the sandbox (localhost).
How it works
Section titled “How it works”ssh-config sets ProxyCommand stillbox ssh-proxy %h: ssh hands its connection to the Stillbox tool, which carries it
over a WebSocket to GET /v1/sandboxes/{id}/ssh. The platform relays it to the sandbox the way it relays
terminals, where harnessd speaks SSH. Any SSH client that supports a proxy command works the same way.