Closed Thread
Results 1 to 3 of 3

Thread: lastlogin

  1. #1
    Hektor is offline Programmer
    Join Date
    Jan 2007
    Posts
    126
    Rep Power
    0

    lastlogin

    On two of my computers when I login via SSH I get a message that states my last login. It looks like this:

    Last login: Thu May 1 17:59:12 2008 from 192.168.0.3
    but on 1 of them I don't get this message. It is kind of convenient to see. I searched but I couldn't find anything to put in the motd or any other SSH setting. How do I add this?

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Crop is offline Learning Programmer
    Join Date
    Jan 2007
    Posts
    62
    Rep Power
    0
    I'm pretty sure this is in your ssh.conf file. You need to turn on a directive. I think it is "ShowLastLogin On" or something like that.

  4. #3
    Jordan Guest
    edit /etc/ssh/sshd_config and set or add PrintLastLog to YES.

    sshd_config:
    Code:
    PrintLastLog Yes

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts