STIGUI
V-258882CAT II — Medium severitySV-258882r991589_rule

The Photon operating system must configure Secure Shell (SSH) to limit the number of allowed login attempts per connection.

Rule version PHTN-40-000219 · STIG v2 · 2026-08-26

Discussion

By setting the login attempt limit to a low value, an attacker will be forced to reconnect frequently, which severely limits the speed and effectiveness of brute-force attacks.

Check

At the command line, run the following command to verify the running configuration of sshd:

# sshd -T|&grep -i MaxAuthTries

Example result:

maxauthtries 6

If "MaxAuthTries" is not set to "6", this is a finding.

Fix

Navigate to and open:

/etc/ssh/sshd_config

Ensure the "MaxAuthTries" line is uncommented and set to the following:

MaxAuthTries 6

At the command line, run the following command:

# systemctl restart sshd.service

Identifiers

Group ID
V-258882
Group title
SRG-OS-000480-GPOS-00227
Rule ID
SV-258882r991589_rule
Check ID
C-62622r933705_chk
Fix ID
F-62531r933706_fix