Linux distributions
TMA-LNX-SSH-IGNORERHOSTS
Ensure SSH IgnoreRhosts is enabled
MédiaNível 1Automatizadalinux
Descrição
Hardens the SSH daemon directive IgnoreRhosts.
Como é verificado
Método de auditoria: Comando shell
shell
sshd -T 2>/dev/null | grep -i '^ignorerhosts '- Saída esperada
ignorerhosts yes
Como é corrigido
Método de correção: Edição de arquivo
- Arquivo
/etc/ssh/sshd_config- Linha de substituição
IgnoreRhosts yes
Propriedades
- Sistemas operacionais
- ubuntu-22.04, ubuntu-24.04, rocky-9
- Tags
- sshserver
- Referência
- CIS Linux Benchmark - Services / SSH Server Configuration (verify section number for your distro release)
Verificar este host
Execute isto em uma máquina que você tenha permissão para auditar. A varredura é somente leitura.
shell
tmaegis scan --target linux