TMA-LNX-PERM-SSHD-CONFIG
Ensure permissions on /etc/ssh/sshd_config are configured
HighLevel 1Automatedlinux
Description
/etc/ssh/sshd_config must be 600 root:root.
How it is checked
Audit method: Shell command
shell
stat -Lc '%a %U %G' /etc/ssh/sshd_config- Expected output
600 root root
How it is fixed
Fix method: Shell command
shell
chown root:root /etc/ssh/sshd_config && chmod 600 /etc/ssh/sshd_configProperties
- Operating systems
- ubuntu-22.04, ubuntu-24.04, rocky-9
- Tags
- permissionsfiles
- Reference
- CIS Linux Benchmark - System File Permissions (verify section number for your distro release)
Check this host
Run this on a machine you are allowed to audit. The scan is read-only.
shell
tmaegis scan --target linux