When compiled with pam use flag, /etc/ssh/sshd_config defaults to # PrintLastLog yes However, the default /etc/pam.d/system-login which is pulled in by /etc/pam.d/sshd specifies: session optional pam_lastlog.so This causes lastlog to be updated twice, and the login information to be printed twice when logging in, the second entry from sshd being the current time. Reproducible: Always Steps to Reproduce: Expected Results: When using pam, sshd should default to PrintLastLog no This problem did not exist with earlier versions of sshd, due to /etc/pam.d/sshd for earlier versions not including system-remote-login, which enables pam_lastlog.so. The changes in openssh's /etc/pam.d/sshd causes the default pam_lastlog.so to be pulled in. Note: This is MOSTLY cosmetic, but as it also causes lastlog to be updated twice (incorrectly), the severity is set to Minor and not Trivial.
*** This bug has been marked as a duplicate of bug 244816 ***