Transit AI SSH

Published
Length
3 min read

Luis Felipe Dias

All posts

You set up transit ai ssh by routing automated shell traffic through a central jump host. You then sign OpenSSH certificates to control which machines your automated agents can reach. Engineering teams often start by giving an AI agent a static SSH key on a bastion. That setup is fast to build, but broad Linux user roles create huge security risks. Once the agent logs in, it can run any command that the local user owns. How transit ai ssh works with OpenSSH certificates A safer native setup r

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 set up transit ai ssh by routing automated shell traffic through a central jump host. You then sign OpenSSH certificates to control which machines your automated agents can reach. Engineering teams often start by giving an AI agent a static SSH key on a bastion. That setup is fast to build, but broad Linux user roles create huge security risks. Once the agent logs in, it can run any command that the local user owns.

How transit ai ssh works with OpenSSH certificates

A safer native setup replaces static keys with signed OpenSSH certificates for every automated task. OpenSSH added certificate support in version 5.4 to avoid copying raw public keys everywhere. These certificates use a much simpler format than standard TLS certificates. A central authority key signs a public key to make a user or host certificate. Each signed certificate holds the public key, an identity string, and a list of principals. Principals are the specific user or host names that the certificate allows for login. The certificate also holds options and a time window for when the key expires.

In a transit setup, the agent first connects to a dedicated jump host. The jump host checks the signed user certificate against the trusted authority key. Next, the jump host forwards the SSH traffic to the target server inside the private network. The target server also checks the certificate principals before it opens a shell session. This flow keeps private network ports closed to the public internet. Teams do not need to manage long lists of static keys on every single server.

What native SSH controls solve and what they miss

Native OpenSSH certificates and bastion hosts solve the network routing and initial login problem. They prove who or what is asking to open a shell on a target machine. They also stop teams from sharing long-lived private keys across many different automation workers. If you set a short time window on the certificate, stolen files expire fast.

Still, native SSH setup only checks identity at the moment the session starts. Once the target server accepts the principal, the Linux account controls everything else. If the agent logs in as a shared admin user, it gets full shell power. Native SSH does not inspect individual commands while the session runs in flight. An AI agent can misread a prompt and run a destructive delete command right away. It can also print customer files that hold emails, phone numbers, or card numbers. Standard SSH logs show that a login happened, but not what the commands returned. Teams still lack a way to pause risky commands or rewrite sensitive text in outputs.

SSH Access Management + AI Agent Security: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Why command-level checks matter for automated agents

Human engineers usually pause and read terminal output before they run a dangerous script. Automated agents run shell commands at machine speed and react to whatever text comes back. When an agent hits an unexpected error, it often tries wider flags to fix it. On a standard Linux role, nothing stops that loop from changing system files or settings. Also, any raw data printed to the screen flows straight back into the model context. If a command dumps a table with national IDs, that private data enters the prompt. Reviewing actions at the command level helps teams catch bad scripts before they run. Rewriting matched fields in results also keeps sensitive records out of external model logs.

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

What is the difference between an OpenSSH certificate and a static SSH key?

A static SSH key is just a raw pair of public and private key files. An OpenSSH certificate adds an identity, allowed principals, options, and a signature from an authority key.

Do OpenSSH user certificates expire on their own by default?

No, you must define a validity window when you sign the key with the authority. Without a defined time window, the signed certificate stays valid forever until you revoke it.

Can a jump host read the commands inside a forwarded SSH session?

No, standard SSH jump forwarding keeps the end-to-end traffic encrypted between client and target. The jump host routes the network packets, so it cannot inspect commands or rewrite output.

The query runs. The emails stay hidden.