STIGUI
V-256588CAT II — Medium severitySV-256588r1268251_rule

The Photon operating system must configure sshd to restrict LoginGraceTime.

Rule version PHTN-30-000120 · STIG v1 · 2026-08-31

Discussion

By default, sshd unauthenticated connections are left open for two minutes before being closed. This setting is too permissive as no legitimate login would need such an amount of time to complete a login. Quickly terminating idle or incomplete login attempts will free resources and reduce the exposure any partial logon attempts may create.

Check

At the command line, run the following command:

# sshd -T|&grep -i LoginGraceTime

Expected result:

logingracetime 30

If the output does not match the expected result, this is a finding.

Fix

Navigate to and open:

/etc/ssh/sshd_config

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

LoginGraceTime 30

At the command line, run the following command:

# systemctl restart sshd.service

Identifiers

Group ID
V-256588
Group title
SRG-OS-000480-GPOS-00227
Rule ID
SV-256588r1268251_rule
Check ID
C-60263r887436_chk
Fix ID
F-60206r887437_fix