ProxyJump
conceptAn SSH feature that routes your connection through an intermediate server without giving that server access to your agent—the intermediate opens a TCP tunnel, and your client authenticates directly with the destination through it. The secure alternative to agent forwarding for multi-hop SSH.
On the command line:
ssh -J jumphost user@destination
Or in ~/.ssh/config:
Host destination
HostName 10.0.0.5
User admin
ProxyJump jumphost
How it works:
- SSH opens a connection to the jump host
- The jump host opens a TCP tunnel to the destination
- Your SSH client authenticates directly with the destination through the tunnel
- The jump host sees encrypted traffic—nothing else
The jump host never sees your key, never talks to your agent, cannot use your credentials. It is just a network relay.
ProxyJump is the third of three answers to "my key is on my laptop but I need to hop through a machine"—the other two being copy the key to the intermediate (don't) and agent forwarding (the key stays home but its power travels). The comparison:
| Feature | Agent Forwarding | ProxyJump |
|---|---|---|
| Key leaves laptop | No | No |
| Intermediate can sign as you | Yes | No |
| Requires trust in intermediate | Yes | No |
| Config complexity | Low | Low |
| Works with hardware keys | Partially | Yes |
When to use ProxyJump instead of forwarding: almost always. Especially any server you don't fully control, any multi-hop path through shared infrastructure, any cloud or work environment—and any time hardware keys are involved, because agent forwarding behavior with hardware keys varies and can be unreliable while ProxyJump works cleanly.