TMA-LNX-SSH-HOSTBASED
Ensure SSH HostbasedAuthentication is disabled
MediaNivel 1Automatizadalinux
Descripción
Hardens the SSH daemon directive HostbasedAuthentication.
Cómo se verifica
Método de auditoría: Comando de shell
shell
sshd -T 2>/dev/null | grep -i '^hostbasedauthentication '- Salida esperada
hostbasedauthentication no
Cómo se corrige
Método de corrección: Edición de archivo
- Archivo
/etc/ssh/sshd_config- Línea de reemplazo
HostbasedAuthentication no
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