Hacker News new | ask | show | jobs
by avinassh 3953 days ago
And if you want to get the public key also:

https://github.com/<username>.keys

ex.: https://github.com/avinassh.keys

1 comments

No need. You can recover the public key from a private key using ssh-keygen's 'y' option:

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

For example:

ssh-keygen -y -f id_rsa > id_rsa.pub