1
Task 1 of 5
Loading...
SSH HARDENING DRILL
Scenario
Brute-force SSH attempts detected from multiple IPs. Quickly inspect the SSH configuration and identify the weak settings that need to be changed.
0 completed
0%
Solution Cheat Sheet
Task 1 — Check root login setting
grep PermitRootLogin /etc/ssh/sshd_config
Also works: cat /etc/ssh/sshd_config
Task 2 — Check SSH port
grep Port /etc/ssh/sshd_config
Task 3 — Check password auth
grep PasswordAuthentication /etc/ssh/sshd_config
Task 4 — Check max auth tries
grep MaxAuthTries /etc/ssh/sshd_config
Task 5 — Check empty passwords
grep PermitEmptyPasswords /etc/ssh/sshd_config