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. 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_config If the permissions are incorrect, run the following command to correct them- # chmod 600 /etc/ssh/sshd_config

See Also

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

Item Details

Category: CONFIGURATION MANAGEMENT

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

Plugin: Unix

Control ID: 5874976e070a6cc43ef4b8f561c91fd63a12536d134defac2fae21eb5681203c