8.2 Enable a Warning Banner for the SSH Service - Banner = /etc/issue

Information

The contents of the Banner string in the /etc/ssh/sshd_config file are sent to the remote
user before authentication is allowed, requiring that the user read the legal caution.

Performing these steps will ensure the appropriate legal caution is displayed to any user
accessing the system via SSH.

Solution

Perform the following to implement the recommended state-# awk '/^#Banner/ { $1 = 'Banner' }
{ print }' /etc/ssh/sshd_config > /etc/ssh/sshd_config.CIS
# mv /etc/ssh/sshd_config.CIS /etc/ssh/sshd_config
# svcadm restart svc-/network/ssh

See Also

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

Item Details

Category: ACCESS CONTROL

References: 800-53|AC-8a.

Plugin: Unix

Control ID: 2f97a38f61053f7ea1aa46bcd17e9c6f72c49a425572c72bc0bb8f6b16fee2db