Go Back   Linux Forums by TotalPenguin! Get linux Help! > Linux > Linux Networking

Linux Networking This forum is for Linux Networking Only. Routing, servers, etc.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-02-2008, 12:13 AM
Senior Member
 
Join Date: Jan 2007
Posts: 109
Hektor is on a distinguished road
Default lastlogin

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

Quote:
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?
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 05-06-2008, 10:41 PM
Member
 
Join Date: Jan 2007
Posts: 59
Crop is on a distinguished road
Default

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.
Reply With Quote
  #3 (permalink)  
Old 05-07-2008, 11:35 PM
Jordan's Avatar
Administrator
 
Join Date: Nov 2006
Posts: 507
Jordan is on a distinguished road
Default

edit /etc/ssh/sshd_config and set or add PrintLastLog to YES.

sshd_config:
Code:
PrintLastLog Yes
Reply With Quote
Reply

Tags
laslogin, ssh

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 11:24 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.