TMA-LNX-SSH-IGNORERHOSTS
Ensure SSH IgnoreRhosts is enabled
中レベル 1自動linux
説明
Hardens the SSH daemon directive IgnoreRhosts.
チェック方法
監査方法: シェルコマンド
shell
sshd -T 2>/dev/null | grep -i '^ignorerhosts '- 期待される出力
ignorerhosts yes
修正方法
修正方法: ファイル編集
- ファイル
/etc/ssh/sshd_config- 置換後の行
IgnoreRhosts yes
プロパティ
- オペレーティングシステム
- ubuntu-22.04, ubuntu-24.04, rocky-9
- タグ
- sshserver
- 参照
- CIS Linux Benchmark - Services / SSH Server Configuration (verify section number for your distro release)
このホストをチェック
監査が許可されているマシンで実行してください。スキャンは読み取り専用です。
shell
tmaegis scan --target linux