mediumaccess-controlverified ✓
Ensure permissions on /etc/ssh/sshd_config are configured
sshd-config-permissions · RHEL ≥ 8 · 2 impls
Description
The /etc/ssh/sshd_config file must have correct ownership and permissions.
Rationale
Incorrect permissions on /etc/ssh/sshd_config could allow unauthorized access or modification of sensitive system data.
Check → Remediate
Checkfile_permission
- path:
- /etc/ssh/sshd_config
- owner:
- root
- group:
- root
- mode:
- 0600
Remediatefile_permissions
- path:
- /etc/ssh/sshd_config
- owner:
- root
- group:
- root
- mode:
- 0600
Framework references
CIS
rhel9 5.1.1rhel10 5.1.1rhel8 5.1.2
STIG
V-281048 / RHEL-10-400155V-281047 / RHEL-10-400150V-281262 / RHEL-10-700590V-257997 / RHEL-09-255105V-257998 / RHEL-09-255110
NIST 800-53
AC-3MP-2AC-6
Live verification
rhel10:checkrhel8:checkrhel9:check
#file-permissions#ssh