Use:
ssh-keygen -y -y This option will read a private OpenSSH format file and print an OpenSSH public key to stdout.
Ex: $ ssh-keygen -y -f ~/.ssh/id_rsa_file This will prompt to "Enter passphrase:". Given a wrong passphrase it will say "load failed" otherwise it will print the OpenSSH public key to stdout.