Overview
This checklist covers the essential hardening steps for Ubuntu/Debian and RHEL/CentOS servers. Run through each section after initial server provisioning.
Warning
Test all hardening steps in a staging environment before applying to production. Locking yourself out of SSH has no easy fix on a remote server.
1. System Updates
2. User & Access Management
3. SSH Hardening
4. Firewall Configuration
5. Fail2Ban
6. Kernel Hardening
7. Audit Logging
Verification Checklist
Security Score Targets
| Check | Tool | Target |
|---|---|---|
| CIS Benchmark | lynis | > 80% |
| Open ports | nmap | Minimum required |
| Failed logins | fail2ban | Banning >3 retries |
| Kernel CVEs | apt list --upgradable | 0 critical |