Linux distributions
TMA-LNX-SSH-IGNORERHOSTS
Ensure SSH IgnoreRhosts is enabled
MediaNivel 1Automatizadalinux
Descripción
Hardens the SSH daemon directive IgnoreRhosts.
Cómo se verifica
Método de auditoría: Comando de shell
shell
sshd -T 2>/dev/null | grep -i '^ignorerhosts '- Salida esperada
ignorerhosts yes
Cómo se corrige
Método de corrección: Edición de archivo
- Archivo
/etc/ssh/sshd_config- Línea de reemplazo
IgnoreRhosts yes
Propiedades
- Sistemas operativos
- ubuntu-22.04, ubuntu-24.04, rocky-9
- Etiquetas
- sshserver
- Referencia
- CIS Linux Benchmark - Services / SSH Server Configuration (verify section number for your distro release)
Verificar este host
Ejecute esto en un equipo que tenga permiso para auditar. El escaneo es de solo lectura.
shell
tmaegis scan --target linux