The Photon operating system must configure Secure Shell (SSH) to restrict LoginGraceTime.

Severity
Group ID
Group Title
Version
Rule ID
Date
STIG Version
mediumV-258884SRG-OS-000480-GPOS-00227PHTN-40-000221SV-258884r991589_rule2024-07-112
Description
By default, SSH 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 up resources and reduce the exposure any partial logon attempts may create.
ℹ️ Check
At the command line, run the following command to verify the running configuration of sshd: # sshd -T|&grep -i LoginGraceTime Example result: logingracetime 30 If "LoginGraceTime" is not set to "30", 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