Skip to main content

which public rsa keybelongs to which secret? [Resolved]

Is there a way to find out which public rsa key belongs to which secret key?

I have two pairs lying around, and would like to know ehich one is which.

Asked April 21, 2017
Tags: ssh-keys
Posted Under: Network
1 Answers

ssh-keygen can show you the public key of a given private key:

ssh-keygen -y -f <PRIVATE-KEY>

You can then compare the output with your public keys.

Answered April 21, 2017
Your Answer