See /etc//login.defs LASTLOG_ENAB yes --Adrian. On Thu, 28 Oct 2004 17:55:10 -0300, Matías López Bergero <mlopezb@xxxxxxxxxxxx> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hello, > Again with this, > > I'm not able to display the lastlog msg wen I log in thought ssh on my > Linux box. > I'm using OpenSSH_3.6.1p2 > > I have found this on the sshd man page: > > LOGIN PROCESS > ~ When a user successfully logs in, sshd does the following: > > 1. If the login is on a tty, and no command has been specified, > prints last login time and /etc/motd (unless prevented in the > configuration file or by $HOME/.hushlogin; see the FILES sec-tion). > > As far as I know, the ttys are the consoles connected to the st > input(keyboard), so, what is the sense of this??? Wen I login using ssh, > I'm doing it thought a tty? > > I couldn't find anything about the process performed by ssh wen the > login is from a remote host. > > Any help will be most welcome. > > BR, > Matías. > > Laurent CARON wrote: > > > | Matías López Bergero wrote: > | > |> -----BEGIN PGP SIGNED MESSAGE----- > |> Hash: SHA1 > |> > |> Hi, > |> I can't get lastlogin info wen login in trough ssh no mater where I > |> login from. > |> I have enabled the PrintLastLog option in sshd_config, but the lastlogin > |> date doesn't appears. It does appears wen I login from the box itself, > |> but not via ssh. > |> > |> Any ideas on how can I get this to work? > |> I have a RedHat 8, Linux 2.4.27, OpenSSH_3.4p1. > |> > | Hello, > | > | have a look in /etc/pam.d/ssh > | > | Laurent > | - > | : send the line "unsubscribe linux-admin" in > | the body of a message to majordomo@xxxxxxxxxxxxxxx > | More majordomo info at http://vger.kernel.org/majordomo-info.html > | > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.0.7 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQFBgVyuRB0HKLRQp/gRAhNdAKCAxJ1ygJE8tDa7jPndes8Iwl4wRgCglrfG > iAz/KGSIeKhZ2b/Vx3WGSiY= > =1R3S > -----END PGP SIGNATURE----- > > > - > : send the line "unsubscribe linux-admin" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html > - : send the line "unsubscribe linux-admin" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html