Skip to content
ATO Pathways
Log In
Overview
Search
Catalogs
SCAP
OSCAL
Catalogs
Profiles
Documents
References
Knowledge Base
Platform Documentation
Compliance Dictionary
Platform Changelog
About
Catalogs
XCCDF
Guide to the Secure Configuration of UnionTech OS Server 20
Services
SSH Server
Configure OpenSSH Server if Necessary
Enable SSH Print Last Log
Enable SSH Print Last Log
An XCCDF Rule
Details
Profiles
Prose
Enable SSH Print Last Log
Medium Severity
Ensure that SSH will display the date and time of the last successful account logon.
The default SSH configuration enables print of the date and time of the last login. The appropriate configuration is used if no value is set for
PrintLastLog
.
To explicitly enable LastLog in SSH, add or correct the following line in
/etc/ssh/sshd_config
:
PrintLastLog yes