Sats Coop catalog

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