Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Secure-Shell
[Top] [All Lists]

One account with multiple keys -- which one was used?

Subject: One account with multiple keys -- which one was used?
Date: Mon, 11 Sep 2006 14:14:16 -0400
If I have an account (eg. operator) with multiple public keys in the 
~operator/.ssh/authorized_keys{,2} file, can I determine which key was
used by a given login, which is to say, can I determine who is logging
in as operator when using keys?  I was hoping, for instance, that the
comment field in an rsa1 key could be recorded somewhere (such as
/var/log/messages) for each login each time a key is used - then I could
say Jack logged in as operator rather than Jill for instance.

A list moderator has already rejected this same basic question, because
I used the "root" account as an example rather than the "operator"
account, and the moderator's response was that "standard practice is to
never allow remote root logins" [and instead use distinct accounts and
su to generate audit trail].  Yes, that can generate the basis for the
necessary audit trail, but for the specific situation I have at hand, it
is not as convenient as having one account (root or otherwise) with
multiple keys, so I'm asking again:

Is there a way to distinguish which key was used to login to an account
with multiple permitted keys?

- Wayne


<Prev in Thread] Current Thread [Next in Thread>