TMAegisBeta
Thêm quy tắc cho linux

Linux distributions

TMA-LNX-PERM-SSHD-CONFIG

Ensure permissions on /etc/ssh/sshd_config are configured

CaoCấp 1Tự độnglinux

Mô tả

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

Cách kiểm tra

Phương pháp kiểm tra: Lệnh shell

shell
stat -Lc '%a %U %G' /etc/ssh/sshd_config
Đầu ra mong đợi
600 root root

Cách khắc phục

Phương pháp khắc phục: Lệnh shell

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

Thuộc tính

Hệ điều hành
ubuntu-22.04, ubuntu-24.04, rocky-9
Thẻ
permissionsfiles
Tham chiếu
CIS Linux Benchmark - System File Permissions (verify section number for your distro release)

Kiểm tra máy này

Chạy lệnh này trên máy bạn được phép kiểm tra. Lần quét chỉ ở chế độ đọc.

shell
tmaegis scan --target linux