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

The Photon operating system must configure sshd to display the last login immediately after authentication.

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

Discussion

Providing users with feedback on the last time they logged on via Secure Shell (SSH) facilitates user recognition and reporting of unauthorized account use.

Check

At the command line, run the following command:

# sshd -T|&grep -i PrintLastLog

Expected result:

PrintLastLog yes

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

Fix

Navigate to and open:

/etc/ssh/sshd_config

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

PrintLastLog yes

At the command line, run the following command:

# systemctl restart sshd.service

Identifiers

Group ID
V-256554
Group title
SRG-OS-000480-GPOS-00227
Rule ID
SV-256554r1268251_rule
Check ID
C-60229r887334_chk
Fix ID
F-60172r887335_fix