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



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



Relevant Pages

  • Re: Freeze.Panes revisited
    ... account with your business name on it. ... She then deposits whatever she wants ... you have to personally initial their time sheets for every "in" ... > not had time to make copies of the keys for them yet. ...
    (sci.med.dentistry)
  • RE: Is SSH worth it??
    ... > Subject: RES: Is SSH worth it?? ... user account, I don't see where they would. ... how is having the text of your password stored in the Expect script ... better than having keys? ...
    (Security-Basics)
  • Re: win2003 File Server in a Workgroup -- User Access
    ... Run gpedit.msc again and take a look at the following keys: ... Also check the permissions that you set on your shared folders (give ... you can try using the guest account. ... a Win2003 File server SP1, ...
    (microsoft.public.windows.server.networking)
  • Re: X.509 and ssh
    ... host keys in host's ldap record. ... the financial infrastructure for all retail payment transactions) was ... and the signing entity having a public key on file ... transactions is skimming the account number and using it in fraudulent ...
    (comp.security.ssh)
  • Re: cant install a new I.E
    ... >> removing the problem account, and checking the runonce keys? ... > As far as checking the renounce keys.. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)