Glorious SSH
You build a glorious ssh setup by replacing static user keys with signed OpenSSH certificates. Then you restrict each certificate to specific user names and valid time windows. Most teams start by copying public keys to every server or setting up a shared bastion. When those keys have broad permissions, anyone with a key can run any command on the host. How a glorious ssh workflow operates with certificates OpenSSH added certificate login support for users and hosts in version 5.4. Instead of
Your coding agents run with your access.
Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.
You build a glorious ssh setup by replacing static user keys with signed OpenSSH certificates. Then you restrict each certificate to specific user names and valid time windows. Most teams start by copying public keys to every server or setting up a shared bastion. When those keys have broad permissions, anyone with a key can run any command on the host.
How a glorious ssh workflow operates with certificates
OpenSSH added certificate login support for users and hosts in version 5.4. Instead of trusting many individual public keys, servers trust one central Certification Authority key. The key tool signs a user public key to create a certificate. This certificate holds the public key, an identity string, principal names, and login options. The OpenSSH format is much simpler than the X.509 format used for web traffic.
To issue a credential, an admin signs a public key with the central authority key. During signing, the admin sets an identity name for audit logs. The admin also adds one or more principals, which are the allowed user or host names. By default, the tool creates a user certificate, though it can also make host certificates. Admins can attach options and set a time window so the credential expires.
When an engineer logs in, the target server checks the signature against its trusted authority key. If the signature is valid and the principal matches, the server opens the session. Teams no longer need to copy or delete public key files across hundreds of machines. A single central authority file on each host handles the entire login check.
What native certificates solve and what they leave open
OpenSSH certificates solve the pain of distributing and rotating static keys across your fleet. They let you bind an identity name to each login and enforce expiration times. They also remove the prompt asking users to trust unknown host keys on first login.
Still, a certificate only decides who can open a shell on a server. Once the login check passes, the Linux account permissions take over completely. If ten engineers map to the same admin principal, they all get the same broad shell rights. The certificate does not inspect or approve individual commands while the session is active.
SSH Access Management: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Standard server logs record who logged in and which key identity was used. They do not stop a bad command before it runs on a production host. They also do not mask sensitive data like emails, phone numbers, card numbers, or national IDs in output. Teams that need command approval or data masking in results must look beyond native key checks.
Why shared principals create blind spots
Many teams map every engineer to a single shared Linux user on target hosts. This approach keeps host setup simple because you do not create local accounts for every person. The certificate identity string still shows who logged in inside the system login log.
Once inside the shell, though, every running process belongs to that shared Linux user ID. System tools see the shared account name rather than the individual engineer. If two people log in at the same time, their commands mix under one local user. Controlling what each person can run inside that shared shell requires controls at the command level.
Check SSH commands and file transfers on the host
OpenSSH keys and certificates decide who can log into a Linux host. They do not check what a one-shot command or file transfer does once the session starts. With hoop.dev, you run an open-source SSH server with guardrails on the host. It checks callers with OpenSSH certificates and works with ssh, sftp, scp, and rsync clients.
When a caller runs a one-shot command or moves a file, hoop.dev guardrails check the command or path before it runs. Then hoop.dev data masking masks matched sensitive patterns in downloads and output. Interactive shells carry no guardrails because keystrokes have no statement boundary. Teams can turn interactive shells off and allow only commands and file tasks. The audit trail logs who connected and what was allowed or refused, without storing keystrokes or file bytes. See the source on GitHub.
Frequently asked questions
How do OpenSSH certificates differ from standard SSH keys?
A standard key is just a raw public and private key pair. An OpenSSH certificate adds an identity, allowed principals, options, and a signature from a central authority key.
Do OpenSSH certificates expire on their own?
They only expire if you set a validity time window when you sign the key. If you do not set a window, the certificate remains valid forever by default.
Can an OpenSSH certificate mask sensitive data in terminal output?
No, OpenSSH certificates only handle the login check when a session starts. They cannot inspect terminal output or rewrite fields like card numbers or emails during a session.
Related guides
In this post