STIGUI
V-271487CAT II — Medium severitySV-271487r1261765_rule

OL 9 must display the Standard Mandatory DoW Notice and Consent Banner before granting local or remote access to the system via a SSH logon.

Rule version OL09-00-000256 · STIG v1 · 2026-08-21

Discussion

The warning message reinforces policy awareness during the logon process and facilitates possible legal action against attackers. Alternatively, systems whose ownership should not be obvious should ensure usage of a banner that does not provide easy attribution.

Satisfies: SRG-OS-000023-GPOS-00006, SRG-OS-000228-GPOS-00088

Check

Verify that OL 9 displays the Standard Mandatory DoW Notice and Consent Banner before granting access to the system via SSH connections.

Check for the location of the banner file currently being used with the following command:

$ sudo /usr/sbin/sshd -dd 2>&1 | awk '/filename/ {print $4}' | tr -d '\r' | tr '\n' ' ' | xargs sudo grep -iH '^\s*banner' banner /etc/issue

If the line is commented out or if the file is missing, this is a finding.

Fix

Configure OL 9 to display the Standard Mandatory DoW Notice and Consent Banner before granting access to the system via ssh.

Edit the "etc/ssh/sshd_config" file or a file in "/etc/ssh/sshd_config.d" to uncomment the banner keyword and configure it to point to a file that will contain the logon banner (this file may be named differently or be in a different location if using a version of SSH that is provided by a third-party vendor).

An example configuration line is:

Banner /etc/issue

Identifiers

Group ID
V-271487
Group title
SRG-OS-000023-GPOS-00006
Rule ID
SV-271487r1261765_rule
Check ID
C-75537r1261763_chk
Fix ID
F-75444r1261764_fix