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]

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

Subject: Re: One account with multiple keys -- which one was used?
Date: Mon, 18 Sep 2006 17:20:26 +0300 (IDT)
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

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