Word – how can I check the rsa passphrase

command linepasswordsrsassh

I think I've forgotten my RSA passphrase again.

Is there a way to have my local command line prompt me for it so I can check if I at least what I remember it as is correct, so I don't needlessly change it?

Next time I'm writing it on a post-it 😉

Best Answer

Use:

ssh-keygen -y

-y      This option will read a private OpenSSH format file and
        print an OpenSSH public key to stdout.

Example:

$ ssh-keygen -y -f ~/.ssh/id_rsa_file

This will prompt to enter the passphrase. Given a wrong passphrase it will say "load failed" otherwise it will print the OpenSSH public key to stdout.