Linux server hardening
Practical hardening for Debian/Ubuntu servers (RHEL notes included). Start by looking, then fix.
Free excerpt
Check what SSH really applies
Use sudo sshd -T | grep -E '^(permitrootlogin|passwordauthentication|maxauthtries|x11forwarding)' instead of reading sshd_config. Drop-in files in /etc/ssh/sshd_config.d/ can override the main file. Targets: root login off, password login off, 3–4 auth tries.
Know what is listening
sudo ss -tulpn – every listening port needs an owner and a reason. Look for databases or admin panels bound to 0.0.0.0 that you expected on 127.0.0.1.
Have a firewall, and test it from outside
sudo ufw status verbose or sudo nft list ruleset. Docker writes its own rules, so a ufw rule set can look tighter than it is: scan the host from another machine you own.
Pending updates and end-of-life
apt list --upgradable (or dnf check-update). An end-of-life release outranks every other finding.
Accounts and SUID baseline
awk -F: '($3==0){print $1}' /etc/passwd must print only root. Save sudo find / -xdev -perm /6000 -type f | sort once as a baseline; the value is the diff next month.
The paid checklist adds 11 prioritised sections (A/B/C), copy-ready SSH/sysctl/ufw/auditd examples, a check command per measure and a read-only quick audit.
Get the full pack
Sats Werkstatt
Linux Server Hardening Checklist for Admins (PDF, English)Practical checklist for Linux admins: secure a server step by step – 11 sections with A/B/C priorities, copy-ready configs (SSH, sysctl, ufw, auditd), check commands and a read-only quick audit. Debian/Ubuntu with RHEL notes. 10-page PDF.
8,000 sats English
Buy with Lightning
Linux-Server-Härtungs-Checkliste für Admins (PDF, Deutsch)Praxis-Checkliste für Linux-Admins: Server Schritt für Schritt absichern – 11 Abschnitte mit Prioritäten A/B/C, kopierfertige Configs (SSH, sysctl, ufw, auditd), Prüfbefehle und ein Schnell-Audit, das nur liest. Debian/Ubuntu mit RHEL-Hinweisen. 10 Seiten PDF.
8,000 sats Deutsch
Buy with Lightning
Checklist endurecimiento de servidores Linux (PDF, español)Lista práctica para admins Linux: asegura un servidor paso a paso, con prioridades, configuraciones de ejemplo y comandos de verificación. Debian/Ubuntu con notas para RHEL. PDF de 10 páginas.
8,000 sats Español
Buy with Lightning
Checklist de Hardening de Servidores Linux (PDF, português)Checklist prático para admins Linux: proteja um servidor passo a passo, com prioridades, configs de exemplo e comandos de verificação. Debian/Ubuntu com notas para RHEL. PDF de 10 páginas.
8,000 sats Português
Buy with Lightning