r/linuxadmin • • Jul 13 '26

Linux Server Hardening Guide

Published this not too long ago and it's a great content for homelabbers and small and medium businesses to know how to harden their Linux Servers.

https://youtu.be/xEOT79CQs80

1 Upvotes

12 comments sorted by

15

u/It_Is1-24PM Jul 13 '26

CIS Benchmarks

8

u/WorkJeff Jul 13 '26

One thing I really like about RHEL is you can just build an image with the settings pre-applied

3

u/Burgergold Jul 14 '26

Or keep a kickstart

1

u/TheRealDownLord Jul 18 '26

yes, you can even get this as Ansible Role, which not only hardens but also creates detailed audit reports of your VM. Depending on the OS this is also freely available.

Example: https://github.com/ansible-lockdown/RHEL8-CIS

0

u/readyflix Jul 13 '26

Paywall?

8

u/It_Is1-24PM Jul 13 '26

Free account is required to download PDFs. It's really worth it.

https://portal.cisecurity.org/

12

u/Coffee_Ops Jul 13 '26

Unless I'm crazy it looks like your sshd_config edits were done without uncommenting which makes them noops. The comments in there about what changes do are assuming you will uncomment those lines.

5

u/000r31 Jul 14 '26

not only that, he changed the default "prohibit-password" to be "yes" before doing his change, smh