Skip to content

Hecate SSH access

SSH access without anyone holding a key.

Long-lived SSH keys get copied, forgotten in home directories, and outlive the people who had them. With Hecate, the desktop app makes a throwaway key for each connection and your organization's certificate authority signs it for an hour at most. Nobody receives a key they could take with them, and every connection is in the release log.

Certificate lifetime
1 hour max
Key type
Ed25519, in memory
Host changes
Once, then none
Revocation list refresh
Every minute

How a connection works

  1. The desktop app generates a throwaway Ed25519 key pair in memory.
  2. It sends only the public half to Hecate. The server checks access exactly as for any secret, and logs the request in the hash-chained release log.
  3. Your organization's CA signs an OpenSSH user certificate for that key: one login principal, valid for the lease, an hour at most.
  4. The app connects with the key and certificate, then discards both.

The certificate's key id names the organization, user, device, item and release, and sshd writes it to its auth log, so a login on the host can be traced back to its row in Hecate.

Trust the CA once per host

An organization owner or admin copies the CA public key from the organization page in the web dashboard. On each host:

# /etc/ssh/hecate_user_ca.pub: the CA line(s) from Hecate
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAA... hecate-org-ca

# /etc/ssh/sshd_config
TrustedUserCAKeys /etc/ssh/hecate_user_ca.pub
AuthorizedPrincipalsFile /etc/ssh/auth_principals/%u

# /etc/ssh/auth_principals/deploy: who may log in as "deploy"
deploy

After that, adding or removing people needs no change on the host. There is no authorized_keys file to keep in sync.

Certificates that allow only what you meant

  • Host-bound principals. Switch an organization to host-bound certificates and each one is valid only for its user@host, so a certificate for one server cannot open another server that has the same account name.
  • Source addresses. Restrict a certificate to the networks it may come from; sshd refuses any other client address.
  • Forwarding off by default. Port, agent and X11 forwarding are off unless a manager turns them on for that item.
  • Members cannot widen it. Only owners and admins can change the host, user or certificate policy of a shared server.

When someone leaves

Removing a member or revoking a device stops new certificates at once. Certificates already issued are added to a revocation list that a small cron job on each host can fetch every minute with a read-only token, and they would expire within the hour regardless. There are no host keys to rotate.

Terminal and file transfer in the app

The desktop app for macOS, Windows and Linux opens the session itself. Each server also has a Files button: an SFTP browser on its own connection, with drag-and-drop upload, folder downloads and compressed transfers when the server supports them. Each connection is one release in the log.

A server can carry its own requirements, such as a ProxyJump host, a SOCKS or HTTP proxy, or a note that a VPN is needed, and the app applies them when it connects.

For hosts you cannot reconfigure

Some appliances and managed hosts cannot trust a CA. For those, an SSH item can hold an ordinary private key. It is used only inside the desktop app's built-in SSH agent, and when a manager leaves "members may download the key" off (the default), the app offers no way to show, copy or export it.

Try it with one real secret.