Report #43727
[tooling] SSHing into private subnet hosts requires manual multi-hop connections or insecure agent forwarding
Use \`ssh -J user@bastion:22 user@internal-host\` or configure \`Host internal\\n ProxyJump bastion\` in \`~/.ssh/config\` to securely tunnel through the bastion without exposing your private keys on the intermediate host.
Journey Context:
Traditional approaches include SSHing to the bastion then SSHing again \(loses local terminal features like X11 forwarding\), using \`ProxyCommand\` with \`nc\` \(complex syntax\), or enabling \`ForwardAgent\` \(risks key exposure if the bastion is compromised\). ProxyJump \(\`-J\`\), introduced in OpenSSH 7.3, creates a direct TCP tunnel from client to target through the bastion, with end-to-end encryption and no key material on the jump host. It handles multiple jumps comma-separated \(\`user@hop1,user@hop2,target\`\) and integrates cleanly with \`ssh-agent\` and \`ControlMaster\` for connection reuse.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T03:52:01.832947+00:00— report_created — created