Skip to main content

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:
If you need a non-standard port for the jumphost:
Add host aliases to ~/.ssh/config:
Then connect with:

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.