4.1.1.7 Ensure access to /etc/ssh/ssh_banner is configured

Warning! Audit Deprecated

This audit has been deprecated and will be removed in a future update.

View Next Audit Version

Information

The contents of the /etc/ssh/ssh_banner file are displayed to users prior to login for connections via SSH.

-IF- the /etc/ssh/ssh_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 /etc/ssh/ssh_banner :

# chown root:root /etc/ssh/ssh_banner
# chmod u=rw,go=r /etc/ssh/ssh_banner

See Also

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