Skip to content

SSH Keys for Git

Tobias Vorwachs edited this page Nov 23, 2026 · 1 revision

SSH Keys for Git

A sandbox can sign with your SSH keys without ever holding them.

boxquell ssh-keys --add ~/.ssh/id_ed25519        # every sandbox may sign with this key
boxquell ssh-keys mybox --agent on               # this sandbox may use everything in your SSH agent
boxquell allow mybox github.com:22               # git over SSH needs the port allowed

How it works

Private keys never enter a sandbox. Each sandbox gets an agent socket (SSH_AUTH_SOCK) that leads back to this computer, where the signing happens. The sandbox can use a key while it runs, but cannot read or copy it.

Options

Option Meaning
[NAME] The sandbox. Without it the choice applies to all sandboxes.
--add <FILE> Share this private key file (repeatable)
--rm <FILE> Stop sharing this key file (repeatable)
--agent on|off Share every key loaded in this computer's SSH agent

Key files with a passphrase work through your own SSH agent: ssh-add, then --agent on. Changes apply at once, also to running sandboxes. The same choices are under Secrets in the app.

Note

Not available on Windows yet.

Warning

While a key is shared, anything in the sandbox can ask for signatures with it. Share only keys you can afford to have used by the agent, for example a key limited to one repository.

Next: Secrets | Network | Sandboxes

Clone this wiki locally