Good day,
We are running a SLES 12 SP5 server, and we would like to have, upon the establishment of a successful user session on the CLI, display the unsuccessful session history.
After some investigation on this forum, I tried to add the following line in /etc/pam.d/sshd:
session optional pam_lastlog.so silent noupdate showfailed
This line is also referenced in SLES documentation, but it doesn’t work. After a test (login + wrong password, then login with right password) history only shows last successful connection and does not show failed login attempt.
Does someone knows how to display an unsuccessful history on logon on SLES?
Thank you in advance for your help.