Lion Cipher Lab

Prove each SSH hardening control with sshd -T, ssh-audit and a Fail2Ban ban test

Why it matters

Hardening is a claim about what the server will and will not do, and a claim you have not tested is a guess. Two things go wrong in practice: a setting you edited is silently overridden by another file, and a defence such as Fail2Ban is installed but its filter never matches your real log lines. This lab turns each control into a check you can repeat, so you can show someone exactly what changed and that the safety nets work.

What you'll learn

Steps in this lab

  1. What this lab adds to the other SSH labs, and the safety rules
  2. Record the baseline: effective config and an ssh-audit report
  3. Why you read the effective config: the first value wins
  4. Write the authentication policy as a drop-in file
  5. Test, reload, then prove the new state
  6. Run ssh-audit again and record the difference
  7. Install Fail2Ban and test its sshd filter against a sample failure
  8. Set the thresholds in jail.local, and know what they mean
  9. Prove the response: a real ban, then lift it
  10. Write the one-page baseline, then clean up

Open the full interactive lab →

Keep learning