Search notes:

~/.ssh/id_rsa

Extracting the public key

The public key can be extracted from ~/.ssh/id_rsa with ssh-keygen -y. The following diff command should exit with 0 (i. e. no differences found):
$ diff <(cat ~/.ssh//id_rsa.pub) <(ssh-keygen -y -f ~/.ssh/id_rsa -P passphrase)
$ echo $?
0

See also

~/.ssh/id_rsa.pub
~/.ssh

Index