1.7.9 Ensure access to sshd warning banner is configured

Information

The sshd warning banner must be sent to the remote user before authentication is permitted.

If the sshd warning banner file does not have the correct access configured, it could be modified by unauthorized users with incorrect or misleading information.

Solution

Run the following commands to set mode, owner, and group on the appropriate sshd warning banner file:

# chown root:root </path/to/sshd_banner>
# chmod u-x,go-wx </path/to/sshd_banner>

See Also

https://workbench.cisecurity.org/benchmarks/26236