1
$ ssh-keygen -y

If you input the correct passphrase, it will show you the associated public key.
If you input the wrong passphrase, it will display load failed.
If the key has no passphrase, it will not prompt you for a passphrase and will immediately show you the associated public key. ๐Ÿ˜Ž๐Ÿ˜Ž๐Ÿ˜Ž