Is there an easy way to verify that a given private key matches a given public key? I have a few *.puband a few *.key files, and I need to check w
*.pub
*.key
The check can be made easier with diff:
diff <(ssh-keygen -y -f )
The only odd thing is that diff says nothing if the files are the same, so you'll only be told if the public and private don't match.