Server Hardening
conceptA properly hardened SSH server usually has:
- ❌ password login disabled
- ❌ direct root login disabled
- ✅ SSH key-only access
- ✅ normal user account
- ✅
sudofor privilege escalation
Why this exact shape?
Passwords:
- can be guessed
- can be phished
- can be reused
- can leak
SSH keys:
- cannot be guessed
- cannot be reused elsewhere
- cannot be brute-forced remotely
Disabling password login removes the entire category of remote guessing attacks. Disabling direct root login means an attacker needs both a working key and a way to escalate—sudo from a normal account keeps escalation visible and revocable.