Report #5588
[tooling] SSH to hosts behind a bastion requires manual tunnel setup with -L or complex ProxyCommand netcat hacks
Use ssh -J user@bastion:2222 user@target to transparently route through jump hosts, or configure ProxyJump in ~/.ssh/config for transparent multi-hop connections without manual forwarding
Journey Context:
Legacy methods required creating explicit tunnels with -L or using ProxyCommand with nc \(netcat\) which is fragile, requires shell access on the bastion, and breaks X11/agent forwarding. ProxyJump \(-J\), available since OpenSSH 7.3, establishes a secure TCP tunnel through the intermediate host using the SSH protocol itself, without requiring shell access on the bastion. It properly chains authentication \(forwarding your agent through the jump host\), handles X11 forwarding, and provides clear error messages if any hop fails. Multiple jumps can be chained with comma separation \(-J hop1,hop2\).
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T21:42:02.057319+00:00— report_created — created