SSH authorized keys login

Reuben D. Budiardja techlist at voyager.phys.utk.edu
Thu Mar 11 09:01:01 UTC 2004


On Thursday 11 March 2004 03:40 am, Jithesh wrote:
> On Wednesday 10 March 2004 03:56 am, Manuel Arstegui Ramirez wrote:
> >  --- Jithesh <jitzpop at hotpop.com> 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 -





More information about the redhat-list mailing list