Linux distributions
TMA-LNX-PERM-SSHD-CONFIG
Ensure permissions on /etc/ssh/sshd_config are configured
HochStufe 1Automatisiertlinux
Beschreibung
/etc/ssh/sshd_config must be 600 root:root.
So wird geprüft
Prüfmethode: Shell-Befehl
shell
stat -Lc '%a %U %G' /etc/ssh/sshd_config- Erwartete Ausgabe
600 root root
So wird behoben
Behebungsmethode: Shell-Befehl
shell
chown root:root /etc/ssh/sshd_config && chmod 600 /etc/ssh/sshd_configEigenschaften
- Betriebssysteme
- ubuntu-22.04, ubuntu-24.04, rocky-9
- Tags
- permissionsfiles
- Referenz
- CIS Linux Benchmark - System File Permissions (verify section number for your distro release)
Diesen Host prüfen
Führen Sie dies auf einem Rechner aus, den Sie prüfen dürfen. Der Scan ist schreibgeschützt.
shell
tmaegis scan --target linux