Linux distributions
TMA-LNX-SSH-IGNORERHOSTS
Ensure SSH IgnoreRhosts is enabled
MittelStufe 1Automatisiertlinux
Beschreibung
Hardens the SSH daemon directive IgnoreRhosts.
So wird geprüft
Prüfmethode: Shell-Befehl
shell
sshd -T 2>/dev/null | grep -i '^ignorerhosts '- Erwartete Ausgabe
ignorerhosts yes
So wird behoben
Behebungsmethode: Dateibearbeitung
- Datei
/etc/ssh/sshd_config- Ersetzungszeile
IgnoreRhosts yes
Eigenschaften
- Betriebssysteme
- ubuntu-22.04, ubuntu-24.04, rocky-9
- Tags
- sshserver
- Referenz
- CIS Linux Benchmark - Services / SSH Server Configuration (verify section number for your distro release)
Diesen Host prüfen
Führen Sie dies auf einem Rechner aus, den Sie prüfen dürfen. Der Scan ist schreibgeschützt.
shell
tmaegis scan --target linux