Interview Prep/Linux/SSH & Access Hardening

How do you keep sshd itself secure over time?

IntermediateProductionSSH & Access Hardening
Answer

Patch OpenSSH promptly (regreSSHion CVE-2024-6387 was a remote unauthenticated RCE in sshd), remove weak algorithms, and audit regularly:

ssh -V
sudo sshd -T | grep -E '^(ciphers|macs|kexalgorithms)'
ssh-audit server.example.com    # third-party scanner

Also restrict SSH at the network layer so a future zero-day is not reachable from the internet.

All Linux questions Roadmap: Linux

More on SSH & Access Hardening