SSH authorized keys login

Cowles, Steve steve at stevecowles.com
Thu Mar 11 06:13:09 UTC 2004


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?
> 
> Thnks in Adv.

Sshd logs to /var/log/secure. Should give you the info your wanting.

Mar 11 05:09:49 voyager sshd[20146]: Accepted publickey for scowles
from 192.168.9.21 port 3226 ssh2

Mar 11 05:11:45 voyager sshd[20411]: Accepted password for scowles
from 192.168.9.21 port 3779 ssh2

Steve Cowles





More information about the redhat-list mailing list