When to use a jumphost
Use a jumphost (bastion host) when your target machine is only reachable from a private network, but you have SSH access to an internet-reachable host inside (or adjacent to) that network.Basic SSH jump
Use OpenSSH’s jump option:Recommended SSH config
Add host aliases to~/.ssh/config:
Notes
- If you also need port forwarding, see the Port forwarding guide.
- If your connection is unstable, Undying Terminal’s session persistence helps you avoid losing long-running commands when the underlying SSH transport drops.