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.

steffen
  • 157
  • 1
  • 2
  • 8

1 Answers1

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.

Oliver
  • 5,973
  • 24
  • 33