Nersc SSH Proxy

Published
Length
3 min read

Luis Felipe Dias

All posts

You set up a nersc ssh proxy by routing user sessions through a jump host. You also pair that jump host with short-lived OpenSSH certificates for user login. Research and compute teams often use this pattern to reach internal cluster nodes. Still, once a user logs in, broad Linux roles let them run any command. Shared accounts and wide group permissions make it hard to track individual actions. How a nersc ssh proxy works with OpenSSH certificates In a standard setup, users do not connect str

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 a nersc ssh proxy by routing user sessions through a jump host. You also pair that jump host with short-lived OpenSSH certificates for user login. Research and compute teams often use this pattern to reach internal cluster nodes. Still, once a user logs in, broad Linux roles let them run any command. Shared accounts and wide group permissions make it hard to track individual actions.

How a nersc ssh proxy works with OpenSSH certificates

In a standard setup, users do not connect straight to private compute nodes. Instead, they log in to an external jump host first. That jump host then forwards the SSH connection to the target internal server. Teams combine this network path with OpenSSH certificates to avoid static public keys.

OpenSSH added certificate support for users and hosts in version 5.4. These certificates use a much simpler format than standard TLS certificates. A certificate authority key signs a user public key to create the certificate. The signed file holds the public key, identity text, principal names, and options.

When a researcher wants to log in, they first verify their identity. The authority then signs their key and sets a validity time window. The user presents this signed certificate to the jump host and target node. Each host trusts the authority key, so the user logs in without a password.

What native SSH jump hosts solve and what they miss

This native pattern solves key sprawl across large fleets of Linux servers. Admins no longer need to copy user public keys to every single machine. When a certificate expires, the user must request a fresh signature to reconnect. The jump host also shrinks the public network surface down to one entry point.

Yet this setup only checks who can open a shell session at login. Once the SSH tunnel opens, the server grants the full permissions of the local user. If three engineers map to the same principal name, they share one Linux account. Standard host logs show who logged in, not what each person ran inside the shell.

Database Proxy (ProxySQL, PgBouncer) + SSH Access Management: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

OpenSSH certificates can restrict a key to one specific forced command. Still, static command rules break normal interactive work when engineers need to debug an issue. Teams end up granting full interactive shells to keep daily work moving. That gap leaves live shell commands, file reads, and sensitive outputs unchecked in flight.

Why host-level controls struggle with shared compute nodes

High-performance compute clusters often hold large datasets with sensitive fields. If a user runs a script that prints emails or phone numbers, the terminal shows it. Native SSH tools just carry the raw byte stream back to the client screen. They do not inspect or rewrite text inside the session stream.

To restrict specific commands, admins must maintain rules on every target node. Updating local system files across hundreds of nodes takes time and creates drift. If a user needs temporary root rights for one task, admins must edit host settings. They also have to remember to remove those rights when the task ends.

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 a standard SSH key and an OpenSSH certificate?

A standard SSH key is just a raw public and private key pair. An OpenSSH certificate adds an identity, valid user names, options, and a signature from an authority key.

Do OpenSSH certificates expire on their own by default?

No, OpenSSH certificates stay valid forever unless you set a time window during signing. Admins must always define a start and end time when signing user keys.

Can a jump host inspect commands inside an active SSH session?

A standard SSH jump host only forwards encrypted network packets to the target server. It cannot read, approve, or filter individual shell commands inside that forwarded connection.

The query runs. The emails stay hidden.