r/LinuxTeck • • Oct 25 '26

Linux Server Hardening: What Are We Missing?

I came across these 12 Linux server hardening practices: updates, SSH security, firewall rules, open-port checks, SUID permissions, kernel settings, persistent logs, auditd, and Lynis, among others.

For those who manage Linux servers, what other hardening steps would you add to this list? Have you used any additional tools or practices that made a real difference?

Share your suggestions so we can build a more complete checklist for the community.

35 Upvotes

33 comments sorted by

View all comments

Show parent comment

2

u/z-null Oct 25 '26

you can put your secrets in ansible-vault and not have bad hygiene. Why isn't that an option?

1

u/biffbobfred Oct 25 '26

Just haven’t done it. It seems that’s a “turtles all the way down” yes? I mean you have the password to vault that you need to keep clean? I know that’s the pattern so I must be missing something. That’s what I’m asking what am I missing?

2

u/z-null Oct 25 '26

You mean something like "where does the password for the vault go"? In a password manager. Memorise the pw for password manager and use 2fa for it.

1

u/biffbobfred Oct 25 '26

Hmm. We do have 1password. We can set up a Cli for it I’m sure. Thanks. I’ll work on that.

2

u/z-null Oct 25 '26

you can even keep ssh keys in 1password, so that no secrets (ie private keys) are ever in plaintext on the machines https://1password.com/developers/ssh Basically, you'd use 1password to utilise ssh keys from within it to authenticate to places :) If you have biometrics on your laptop, you can authenticate that way as well.

1

u/biffbobfred Oct 25 '26

Yeah there was some webpage I hit that showed how to do a key on a MacBook with touchID. I’m the only admin with a MacBook so that won’t work

1

u/WideCranberry4912 Oct 25 '26

This is also the type of thing Hashicorp Vault/OpenBao was designed to handle.

1

u/z-null Oct 25 '26

Yes, especially if used with terraform and other hashi tools.