On two of my computers when I login via SSH I get a message that states my last login. It looks like this:
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?Last login: Thu May 1 17:59:12 2008 from 192.168.0.3
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.
edit /etc/ssh/sshd_config and set or add PrintLastLog to YES.
sshd_config:
Code:PrintLastLog Yes
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks