TMAegisBeta
Aturan lainnya untuk linux

Linux distributions

TMA-LNX-PERM-SSHD-CONFIG

Ensure permissions on /etc/ssh/sshd_config are configured

TinggiLevel 1Otomatislinux

Deskripsi

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

Cara pemeriksaan

Metode audit: Perintah shell

shell
stat -Lc '%a %U %G' /etc/ssh/sshd_config
Output yang diharapkan
600 root root

Cara perbaikan

Metode perbaikan: Perintah shell

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

Properti

Sistem operasi
ubuntu-22.04, ubuntu-24.04, rocky-9
Tag
permissionsfiles
Referensi
CIS Linux Benchmark - System File Permissions (verify section number for your distro release)

Periksa host ini

Jalankan ini pada mesin yang diizinkan untuk Anda audit. Pemindaian bersifat hanya baca.

shell
tmaegis scan --target linux