Hardening Linux server
The below writeups were initially based on debian 9 hosts, and then later on ubuntu 18.04 LTS, and on CentOS 8. Everything in these writeups will probably also apply to newer versions. If something does not work, check the documentation for your distro and version for what you are trying to do.