r/LinuxTeck • u/Expensive-Rice-2052 • Oct 25 '26
Linux Server Hardening: Which Security Checks Do You Prioritize First?
covering server hardening, including SSH security, firewall rules, Fail2ban, user and privilege management, file permissions, kernel settings, and audit logging.
The guide also discusses Lynis, OpenSCAP, and compliance-oriented security practices.
Read it here: https://www.linuxteck.com/linux-server-hardening/
2
2
2
1
u/Classic-Rate-5104 29d ago
The sshd info is double in the picture. Moving sshd to a non-standard port is a useless security measure. Better to use sshkeys+password+authenticator (so 3-level authentication). In addition, you can use geolocation info to block many attackers
1
u/epileftric 29d ago
Indeed, the moment an IP is public there are swarms of bots sshing to any port... so changing it makes no difference.
A few weeks ago a colleague of mine asked my I changed to pub/priv keys only on the system we were preparing, simply showed him the logs:
12.00 < network engineer managed to configure the network properly
12.05 < first attempt to ssh into the system by somebody1
1
1
u/LetUsSpeakFreely 26d ago
A great place to start is the STIG hardening guides published by DISA at cyber.mil.
7
u/LawElectrical2434 29d ago
PSA... keep ssh on 22. Why would you use a port that does not require root privileges?
Also, security by obscurity is a great concept if you're a criminal or simply paranoid private enthusiast. Do it for private stuff. it is fun and all. Port knock to your heart's content. But not in a corporate environment. If this is professional, keep it default. 22 is good. They won't guess your key pair and fail2ban is enough to reduce the load on servers. Keep it default for your colleagues sake, that don't want to look up every single feature in an outdated documentation.