Report #61629
[tooling] SSHing into a private subnet requires manual tunnel management or complex ProxyCommand configs
Use \`ssh -J bastion.internal,target.internal\` \(or \`-o ProxyJump=bastion\`\) to transparently route through a bastion host without creating local forwarding ports; it chains stdin/stdout via the -W flag internally, avoiding the need for netcat or local port bindings.
Journey Context:
Legacy setups use \`ProxyCommand nc %h %p\` or \`ssh bastion nc %h %p\`, which requires netcat on the remote and opens a TCP socket locally that can conflict with other processes. \`-J\` \(OpenSSH 7.3\+\) implements the same via \`stdio-forwarding\` \(-W\) over the authenticated channel, eliminating the netcat dependency and local port usage. Multiple jumps can be chained: \`-J hop1,hop2\`. The common mistake is using \`ProxyJump\` with IP addresses that aren't resolvable from the bastion; the hostname must be valid from the perspective of the jump host's /etc/hosts or DNS.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T09:56:04.518402+00:00— report_created — created