Linux distributions
TMA-LNX-SSH-IGNORERHOSTS
Ensure SSH IgnoreRhosts is enabled
MediumLevel 1Automatedlinux
Description
Hardens the SSH daemon directive IgnoreRhosts.
How it is checked
Audit method: Shell command
shell
sshd -T 2>/dev/null | grep -i '^ignorerhosts '- Expected output
ignorerhosts yes
How it is fixed
Fix method: File edit
- File
/etc/ssh/sshd_config- Replacement line
IgnoreRhosts yes
Properties
- Operating systems
- ubuntu-22.04, ubuntu-24.04, rocky-9
- Tags
- sshserver
- Reference
- CIS Linux Benchmark - Services / SSH Server Configuration (verify section number for your distro release)
Check this host
Run this on a machine you are allowed to audit. The scan is read-only.
shell
tmaegis scan --target linux