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
Delete the public keys and generate new ones from the private keys. Keep them in separate directories, or use a naming convention to keep them straight.