

5·
4 days agoGood guide as a base. Few thought…
I’d use unattended-upgrades instead of the script. A long know mehod and does similar, and the script doesn’t reboot for a kernel CVE. I’d pair it alongside out-of-band console and an uptime check.
Fail2ban needs rsyslog enabled (or proper logging) or it silently reads nothing.
And lastly Journald needs retention set, or you can loose logs in reboots.
Also I’m not sure if ‘core’ is enough anymore for a public operating and accessed server, but it’s absolutely vital as a start.
I love ssh-copy-id, but end up doing it manually about half the time anyway. I’ve tried integrating it into build scripts and find what the op did more reliable.
Could just be me though… it is Linux, and there a dozen ways to skin Linus. We all have our assholes and opinions.