Skip to content
BENIBIX Learn

Jump Host

Infrastructure🔑 SSH & Remote AccessRemote Access Tools

Also known as Bastion Host, Jump Server, ProxyJump, ssh -J

A guarded server you go through first. The servers behind it are hidden.

Think of it like

Think of it like the front desk of a big office. You sign in there before you can reach any room.

Example

Jack's company has ten servers on a private network. Staff reach any of them only through one jump host.

Why it matters

Fewer doors to the internet means fewer places to attack and one log to watch.

Definition

A jump host is one server you log in to first, to reach servers that are hidden behind it. Only the jump host faces the internet. The servers behind it have no public address. SSH can hop through it in one step with the -J option. All logins pass one guarded door, which is easy to watch.

Example code

bash
ssh -J jack@bastion.example.com jack@10.0.0.5
Hop through the jump host to a server that has only a private address.
Bottom: the laptop logs in to the jump host. Then it hops to the private server behind it.

Common mistake

Copying your private key onto the jump host to hop on. Use -J instead, so the key never leaves your laptop.

Key takeaways

  1. 1
    One door. Only it faces the internet.
  2. 2
    Hidden servers. No public address behind it.
  3. 3
    Hop with -J. Keys stay on your laptop.

Learn it properly