5.2.17 Ensure SSH warning banner is configured
Audit#
Run the following command:
# sshd -T -C user=root -C host="$(hostname)" -C addr="$(grep $(hostname) /etc/hosts | awk '{print $1}')" | grep banner
Verify the output matches:
Remediation#
Edit the /etc/ssh/sshd_config file to set the parameter as follows: