# Without specify the key file. It will be ask you.
ssh-keygen -y
# Specifying the key file
ssh-keygen -y -f <key file>
-
If you input the correct passphrase, it will print you the associated public key.
-
If the key has no passphrase, it will not prompt you for a passphrase and will immediately print you the associated public key.
-
If you input the wrong passphrase, it will display load failed.