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

The Photon operating system must configure Secure Shell (SSH) to display the last login immediately after authentication.

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

Discussion

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

Check

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

# sshd -T|&grep -i PrintLastLog

Example result:

printlastlog yes

If "PrintLastLog" is not set to "yes", 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-258879
Group title
SRG-OS-000480-GPOS-00227
Rule ID
SV-258879r991589_rule
Check ID
C-62619r933696_chk
Fix ID
F-62528r933697_fix