SV-100123r1_rule
V-89473
SRG-OS-000023-GPOS-00006
VRAU-SL-000030
CAT II
10
To configure the SSH daemon for the logon warning banners, modify /etc/ssh/sshd_config with the following command:
# sed -i "/^[^#]*Banner/ c\Banner /etc/issue" /etc/ssh/sshd_config
The SSH service will need to be restarted after the above change has been made to SSH. This can be done by running the following command:
# service sshd restart
Check that the SSH daemon is configured for logon warning banners:
# grep -i banner /etc/ssh/sshd_config | grep -v '#'
If the output does not contain "Banner /etc/issue", this is a finding.
V-89473
False
VRAU-SL-000030
Check that the SSH daemon is configured for logon warning banners:
# grep -i banner /etc/ssh/sshd_config | grep -v '#'
If the output does not contain "Banner /etc/issue", this is a finding.
M
3459