TMAegis
linux のその他のルール

TMA-LNX-PERM-SSHD-CONFIG

Ensure permissions on /etc/ssh/sshd_config are configured

高レベル 1自動linux

説明

/etc/ssh/sshd_config must be 600 root:root.

チェック方法

監査方法: シェルコマンド

shell
stat -Lc '%a %U %G' /etc/ssh/sshd_config
期待される出力
600 root root

修正方法

修正方法: シェルコマンド

shell
chown root:root /etc/ssh/sshd_config && chmod 600 /etc/ssh/sshd_config

プロパティ

オペレーティングシステム
ubuntu-22.04, ubuntu-24.04, rocky-9
タグ
permissionsfiles
参照
CIS Linux Benchmark - System File Permissions (verify section number for your distro release)

このホストをチェック

監査が許可されているマシンで実行してください。スキャンは読み取り専用です。

shell
tmaegis scan --target linux