SSH into a box
The workbox command, your own terminal, VS Code and Cursor.
Use your own terminal, VS Code or Cursor with your boxes. The workbox command signs your computer in once, then every SSH connection goes through Workbox: no port on the box is open to the internet, and no key is left on it.
Install and sign in
You need Python 3.10 or later, and OpenSSH (ssh and ssh-keygen), which macOS, Linux and Windows 10 or later have.
pip install workbox # or: uv tool install workbox
workbox login --url https://workbox.fyiworkbox login opens your browser at a page showing a code. Check it matches your terminal's, then approve the computer. It also makes a key for Workbox in ~/.workbox/ssh/ and adds a Host *.workbox block to ~/.ssh/config.
Connect
workbox boxes # your running and paused boxes, by name
workbox ssh tinystories # SSH into the box named tinystories
ssh tinystories.workbox # the same, with plain ssh
scp data.csv tinystories.workbox:~/work/
rsync -av results/ tinystories.workbox:~/work/results/A box's name is shown on its page; it comes from its project or size, like tinystories or cpu-2. You sign in as learner, in ~/work.
VS Code and Cursor
Install the Remote - SSH extension, then Connect to Host and type tinystories.workbox. It uses the same ~/.ssh/config entry, so nothing else is needed.
A job's box
Every job runs on a box, reached the same way by its name: your project's box, or a job's own box, named after the project and the job (tinystories-42):
workbox ssh tinystories-42To look around a box of its own after a failure, give the job keep in its settings: its box stays that many minutes after it fails (see The job settings). The job's page also has Open box.
How it stays safe
- Each connection gets a certificate for your key, valid for that one box for 12 hours, and a pass that works once.
- Workbox checks that you may open the box every time: your own boxes, ones shared with you, and jobs of your workspace.
- When a box is unshared, stopped or ended, no new certificate or pass is given for it.
workbox logoutsigns the computer out. Your account in Workbox lists your signed-in computers, and can sign any of them out.
Troubleshooting
| What you see | What to do |
|---|---|
you're not signed in | Run workbox login --url https://workbox.fyi |
your sign-in has ended | Sign-ins last 30 days. Run workbox login again |
isn't running | Start or resume the box in Workbox first |
the box refused the connection | The box may have just paused or moved. Open it in Workbox, then try again |
ssh-keygen wasn't found | Install OpenSSH, then run workbox login again |
Next: CLI