SV-99013r1_rule
V-88363
SRG-OS-000023-GPOS-00006
VROM-SL-000030
CAT II
10
To configure the SSH daemon with the logon warning banners, modify /etc/ssh/sshd_config execute 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 '#'
The output should contain "Banner /etc/issue".
If the output does not contain "Banner /etc/issue", this is a finding.
V-88363
False
VROM-SL-000030
Check that the SSH daemon is configured for logon warning banners:
# grep -i banner /etc/ssh/sshd_config | grep -v '#'
The output should contain "Banner /etc/issue".
If the output does not contain "Banner /etc/issue", this is a finding.
M
3461