Hatch, the emergency shell
Hatch is how you reach your servers when nothing else works: you lost the network, locked yourself out with a firewall rule, or the server won't boot. It's an SSH service of ours, not on your server. Through it you can:
- open a server's console;
- start, shut down, reboot, stop or reset it;
- boot it into rescue and back;
- reinstall it;
- reach it over SSH as a jump host, when your plan includes it.
You can use it on the servers of every organization you own or administer. Each option works as it does on your account page, so your plan's features and the server's status apply.
Add your SSH key
Hatch signs you in with an SSH key, never a password.
- On your account page, open Security → SSH keys, then Add a key.
- Paste your public key. That's the line in your
.pubfile, for example~/.ssh/id_ed25519.pub. Never paste the private key. - Enter your current password.
Ed25519, ECDSA, security keys (sk-…) and RSA keys of 2048 bits or more work. We email you whenever a key is added. To make a key, run ssh-keygen -t ed25519.
Connect
When Hatch is offered, the SSH keys card shows the command to use, for example:
ssh -p 2222 'you@example.com'@hatch.example.com
The key says who you are, so any user name works; the card shows your email. A key can be on only one account: for a second account, make a second key.
The first time you connect, your SSH program asks whether to trust the host key. Check that it matches the fingerprint on the card.
If you turned on two-step sign-in for your account, Hatch asks for a code from your authenticator app after your key. A recovery code works too, once. You get three tries a connection.
After you sign in, Hatch shows a menu:
s: your servers (below).d: DNS zones. Pick an account and a zone to see its records. Owners can add (a), edit (e 3) and remove (r 3) records.m: your mailboxes, with the webmail address.o: object storage: your accounts and their buckets.t: support tickets. Read them, reply (r), or open one (n). Type a message over several lines and end it with a line holding only a dot.i: the invoices of organizations you own or handle the billing of. Pay or download them on the account page.
Everything outside the servers works exactly as on the account page, with the same permissions. While you're connected, Hatch appears in your account's Sessions as "Hatch (SSH)". Signing out everywhere ends it, and so does disconnecting. Paying, plan changes and mailbox changes stay on the account page.
Pick a server under s, then:
c: the console. Press Ctrl-] to leave it. If it stays blank, press Enter.p: power.r: rescue.i: reinstall. You type the server's name to confirm.b: back to your servers.qquits.
Hatch closes after 30 minutes without typing. It doesn't run commands or copy files (scp, sftp).
Use it as a jump host
With the Jump host feature on a server's plan, Hatch can carry your own SSH connection to that server:
ssh -J 'you@example.com'@hatch.example.com:2222 root@203.0.113.10
Or in ~/.ssh/config:
Host myserver
HostName 203.0.113.10
User root
ProxyJump you@example.com@hatch.example.com:2222
- Hatch signs you in with your key (and your two-step code, if it's on). Then you sign in to the server with the server's own keys or password, as usual.
- Your session with the server is encrypted end to end. Hatch passes it on and can't read it.
- You can use any of the server's addresses, an address in its IPv6 /64, or its name as shown on your account page, which goes to its first address.
- Port 22 always works. Your plan may also allow other ports, such as 3389 for remote desktop or 5432 for PostgreSQL. Forward them with
ssh -L, for examplessh -N -L 5432:203.0.113.10:5432 'you@example.com'@hatch.example.com -p 2222. This reaches those ports without opening them to the internet. Your server's firewall still applies. - Only your own servers can be reached: those of organizations you own or administer. Any other address, or a port your plan doesn't list, is refused.
- Each connection through Hatch is recorded in your organization's activity: who, which server and port, when, how long, and the bytes each way.
Keep it safe
A key reaches every server you manage, so:
- remove keys you no longer use;
- remove a key at once if you think it was copied (its open sessions end within a minute);
- also change your password if you think a key was copied;
- turn on two-step sign-in, so a copied key alone doesn't get in.
The card shows when each key was last used. Every Hatch sign-in and action is recorded in your organization's activity.