9.3.3 Set Permissions on /etc/ssh/sshd_config

Information

The /etc/ssh/sshd_config file contains configuration specifications for sshd. The command
below sets the owner and group of the file to root.

*Rationale*

The /etc/ssh/sshd_config file needs to be protected from unauthorized changes by non-
priliveged users, but needs to be readable as this information is used with many non-
privileged programs.

Solution

If the user and group ownership of the /etc/ssh/sshd_config file are incorrect, run the
following command to correct them-# chown root-root /etc/ssh/sshd_configIf the permissions are incorrect, run the following command to correct them-# chmod 600 /etc/ssh/sshd_config

See Also

https://workbench.cisecurity.org/files/91

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6b., CSCv6|3.1

Plugin: Unix

Control ID: fff6973ef1e9b9b65f1097393eb76e7789f06fa99f7d361a4b728cb36e518bdb