Lion Cipher Lab

Reach an internal host through an SSH bastion and lock it so only the bastion gets in

Why it matters

A bastion is one hardened door that administrators must go through, so there is one place to log, one place to require strong authentication and one place to watch. It only works if the door is really the only way in. If the internal servers also accept SSH from anywhere, the bastion is decoration. Locking the internal host so it accepts SSH only from the bastion turns the design into a rule. It also pairs with a second question every administrator needs to answer: how do I reach this server when the normal network is down, and is that way protected too?

What you'll learn

Steps in this lab

  1. What a bastion is for, and the two ways it fails
  2. Build the three machines
  3. Make a throwaway key pair and start an sshd on the bastion and the internal host
  4. Write the client's ssh config and jump through the bastion
  5. Show the leak: someone turns on forwarding
  6. Lock 1: the internal host's firewall accepts SSH only from the bastion
  7. Lock 2: tell sshd itself to accept the user only from the bastion
  8. In-band and out-of-band management: what happens when the network is down
  9. What a professional does differently
  10. Clean up

Open the full interactive lab →

Keep learning