{"id":55,"date":"2006-04-12T15:02:15","date_gmt":"2006-04-12T22:02:15","guid":{"rendered":"http:\/\/www.steveneppler.com\/blog\/2006\/04\/12\/centos-43-not-recording-the-last-openssh-login-lastlog-not-working"},"modified":"2006-04-17T09:00:38","modified_gmt":"2006-04-17T16:00:38","slug":"centos-43-not-recording-the-last-openssh-login-lastlog-not-working","status":"publish","type":"post","link":"https:\/\/steveneppler.com\/blog\/2006\/04\/12\/centos-43-not-recording-the-last-openssh-login-lastlog-not-working","title":{"rendered":"CentOS 4.3 not recording the last OpenSSH login (lastlog not working)"},"content":{"rendered":"<p>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 <a href=\"http:\/\/bugs.centos.org\/view.php?id=1245&#038;nbn=17\">this bug<\/a>.<\/p>\n<p>To fix, I added a single line to my \/etc\/ssh\/sshd_config file:<\/p>\n<pre>\r\nUseLogin yes\r\n<\/pre>\n<p>Now the server properly records the last login date, time, and IP address, and the lastlog command is now working properly.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 &#8230; <a title=\"CentOS 4.3 not recording the last OpenSSH login (lastlog not working)\" class=\"read-more\" href=\"https:\/\/steveneppler.com\/blog\/2006\/04\/12\/centos-43-not-recording-the-last-openssh-login-lastlog-not-working\" aria-label=\"Read more about CentOS 4.3 not recording the last OpenSSH login (lastlog not working)\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-55","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/steveneppler.com\/blog\/wp-json\/wp\/v2\/posts\/55","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/steveneppler.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/steveneppler.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/steveneppler.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/steveneppler.com\/blog\/wp-json\/wp\/v2\/comments?post=55"}],"version-history":[{"count":0,"href":"https:\/\/steveneppler.com\/blog\/wp-json\/wp\/v2\/posts\/55\/revisions"}],"wp:attachment":[{"href":"https:\/\/steveneppler.com\/blog\/wp-json\/wp\/v2\/media?parent=55"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/steveneppler.com\/blog\/wp-json\/wp\/v2\/categories?post=55"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/steveneppler.com\/blog\/wp-json\/wp\/v2\/tags?post=55"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}