Re: SSH authorized keys login

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thursday 11 March 2004 03:40 am, Jithesh wrote:
> On Wednesday 10 March 2004 03:56 am, Manuel Arstegui Ramirez wrote:
> >  --- Jithesh <jitzpop@xxxxxxxxxx> escribi: > Hi all,
> >
> > > In order to avoid ssh asking password, I have added
> > > about 30 users into
> > > my authorized keys list. Is there a way by which you
> > > can find which user
> > > logged in ?
> >
> > Try finger (as root)
> > Cheers
> >
> > You don't need to be root to do that. 'w' also gives you that and more
> > (check for yourself).
>
> You got it all wrong or maybe my question wasn't conveyed properly. The
> last command gives the users who logged in. Is there a way by which we
> can find who logged in with the ssh key?

No, not by default as far as I know. However the login is logged to 
/var/log/secure and /var/log/message. You can write a script to grep those 
login that uses authorized keys. Should not be too hard.

RDB

-- 
Reuben D. Budiardja
Department of Physics and Astronomy
The University of Tennessee, Knoxville, TN
---------------------------------------------------------
"To be a nemesis, you have to actively try to destroy 
something, don't you? Really, I'm not out to destroy 
Microsoft. That will just be a completely unintentional 
side effect."
                 - Linus Torvalds -


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux