CentOS 4.3 not recording the last OpenSSH login (lastlog not working)

I recently had an issue where my server was not recording the last login time and IP address when you logged in via SSH. I believe I ran into this bug.

To fix, I added a single line to my /etc/ssh/sshd_config file:

UseLogin yes

Now the server properly records the last login date, time, and IP address, and the lastlog command is now working properly.

Leave a Comment