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



On Mon, 11 Sep 2006, Wayne Betts wrote:

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,

Find in your log file something like

... sshd ... auth.info ... Found matching RSA key: ec:1b:2e:...

(you need ``LogLevel VERBOSE'' for this).

You can get the fingerprint of a public key with

ssh-keygen -lf public-key-file

By comparing fingerprint with log you can find which key was used.

--
Regards,
ASK



Relevant Pages

  • Re: winnt provider and lastlogin using vbscript
    ... However, during the login ... Set objFile = objFSO.OpenTextFile ... On Error GoTo 0 ... ' Save the new last logon date/time in the log file. ...
    (microsoft.public.scripting.vbscript)
  • Re: Bad update - X11 corrupted
    ... OK, there was no 'rhgb' in my boot loader, so I got in and manually ... the log file, but no help there. ... When the login prompt comes up, ... >> there, so keeps cycling from text login to graphical login and back, ...
    (Fedora)
  • Re: Need help: perl script to FTP
    ... > On the game server is log file which contains all of the data from the ... > on my webserver, which is supposed to login to the gameserver and download ... The &sendsubroutine doesn't exist in your script. ...
    (perl.beginners)
  • Re: Need help: perl script to FTP
    ... > On the game server is log file which contains all of the data from the ... > on my webserver, which is supposed to login to the gameserver and download ... The &sendsubroutine doesn't exist in your script. ...
    (comp.lang.perl)
  • Re: Unique identify a user-session
    ... connect via terminalserver multiple times at the same time from one ... >> At login and logout of a user we run a small programm which writes ... > If you are writing to some log file the logon and logout time then ...
    (microsoft.public.windows.server.general)