Lion Cipher Lab
Prove each SSH hardening control with sshd -T, ssh-audit and a Fail2Ban ban test
- Cyber / Security Engineer
- Intermediate
- ~60 min
- Free · no account required
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
- reading the effective SSH server configuration with sshd -T instead of trusting the file you edited
- changing authentication settings safely: test with sshd -t, reload, keep a second session open
- using ssh-audit before and after a change and recording the difference
- testing a Fail2Ban filter against a sample log with fail2ban-regex before relying on it
- causing and then lifting a real ban, and reading the jail status
Steps in this lab
- What this lab adds to the other SSH labs, and the safety rules
- Record the baseline: effective config and an ssh-audit report
- Why you read the effective config: the first value wins
- Write the authentication policy as a drop-in file
- Test, reload, then prove the new state
- Run ssh-audit again and record the difference
- Install Fail2Ban and test its sshd filter against a sample failure
- Set the thresholds in jail.local, and know what they mean
- Prove the response: a real ban, then lift it
- Write the one-page baseline, then clean up
Open the full interactive lab →