On 12/13/23 08:24, Dave Close wrote:
I asked:

For example, given the message,
    Accepted publickey for ... from ... port ... ssh2: RSA
      SHA256:QSyKp5SJ8gJFcYtbtb9SQ1axtqSg7fEoQBiZf3kPXgU
what is the meaning of the RSA value listed? Is it a "fingerprint"?
How can I compare it to the various keys on my system?

Roberto Ragusa answered:

ssh-keygen -lf ~/.ssh/id_rsa.pub

This comes up easily on Google.

I wasn't asking for the value related to my public key. I'm not likely
to see whatever the related value for that key might be in an "Accepted
publickey" message on my own system.

My question was, when someone connects to my system, which key in my
authorized_keys file were they using? That seems to have been a more
difficult question. But see my next message.

Since the command above wants the public key, you just have to provide
it with the lines in your authorized_keys.

e.g.

while read a; do echo "$a"|ssh-keygen -lf -;done <~/.ssh/authorized_keys

Regards.

--
   Roberto Ragusa    mail at robertoragusa.it
--
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to