inaabi / Guides / Check one setting from the RHEL 9 DISA STIG
Check one setting from the RHEL 9 DISA STIG
How to read one SSH setting from the RHEL 9 DISA STIG, see the value OpenSSH will use, and undo it. Finding ids stay in the STIG.
Tested on Debian GNU/Linux 12 (bookworm), OpenSSH 9.2p1, 2026-12-04.
The DISA STIG for Red Hat Enterprise Linux 9 is a public list of settings. The index is on cyber.mil. This page does not copy the STIG's check text, and it does not invent a finding id. The id you write down is the one in the RHEL 9 STIG you opened. An Ubuntu finding id is a different STIG. Pasting a V-260 number onto RHEL 9 names the wrong document.
A pass on one setting is not a DISA certification, and it is not an authorization to operate. Inaabi can map a check to a STIG finding. The command-line tool is not out yet.
The commands below were run on Debian 12, OpenSSH 1:9.2p1-2+deb12u10, on 2026-12-04. RHEL 9 was not booted. rpm -q was not run. The behavior under test is how OpenSSH chooses a value. On RHEL 9 you run the same sshd -T and you take the finding id from the RHEL 9 STIG, not from this transcript.
See which value wins
OpenSSH uses the first value it finds for a keyword. sshd_config(5) says so, and the lab run showed it.
Lab config, sshd -T -f, before any drop-in:
maxauthtries 6
clientaliveinterval 0
permitrootlogin yes
x11forwarding yes
sshd -t -f exited 0. Then 00-early.conf set MaxAuthTries 3 and 99-late.conf set MaxAuthTries 4. Effective result:
maxauthtries 3
A remediation script that appends a line at the bottom of sshd_config can "succeed" and leave the old value in force. sshd -T is the check. The file you edited is not.
Apply one drop-in and undo it
One file, 00-compliance.conf, in the lab Include directory:
X11Forwarding no
PermitRootLogin no
PermitEmptyPasswords no
MaxAuthTries 4
ClientAliveInterval 600
ClientAliveCountMax 1
Ciphers aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes256-ctr,aes128-ctr
MACs hmac-sha2-512,hmac-sha2-256
sshd -t -f exited 0. sshd -T -f printed permitrootlogin no, x11forwarding no, maxauthtries 4, clientaliveinterval 600, clientalivecountmax 1, and those cipher and MAC lists. Count 0 is the wrong way to write an idle timeout: current OpenSSH treats ClientAliveCountMax 0 as "do not disconnect".
Undo is deleting that file. sshd -T -f then printed maxauthtries 6, clientaliveinterval 0, permitrootlogin yes, and x11forwarding yes. The host sshd was not reloaded. Nothing under /etc/ssh on the test machine was edited. /etc/ssh/sshd_config.d/ is where a RHEL 9 host keeps the same kind of drop-in. Confirm the Include line in that host's sshd_config before you rely on the directory. That file was not read on RHEL 9 in this run.
If the STIG finding stays open, write it up on the exception page and use the RHEL 9 finding id. A CIS recommendation id is not a substitute. The Benchmark page is separate: what a CIS Benchmark is.
Questions
Does this transcript mean the host passes the RHEL 9 STIG?
No. One lab config on Debian 12 matched the values above. The RHEL 9 STIG has many other findings. This is not a certification and not an authorization.
Can I reuse an Ubuntu STIG id on RHEL 9?
No. Get the id from the RHEL 9 STIG on cyber.mil. The 8 and 10 STIGs are different pages and are not this one.
Was RHEL 9 booted for this test?
No. The binary was Debian 12's OpenSSH 9.2p1. A RHEL 9 lab VM was still waiting on the lease queue.