0

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.

2

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.