Find the public key belonging to a private key

Oh Dear! monitors your entire site, not just the homepage. We crawl and search for broken pages and mixed content, send alerts when your site is down and notify you on expiring SSL certificates.

Start your free 10 day trial! »

Image of Mattias Geniar

Mattias Geniar, October 02, 2018

Follow me on Twitter as @mattiasgeniar

Here’s how you can show the public key part if you have the private key.

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

This’ll output your public key for SSH in the usual authorized_keys format.

$ ssh-keygen -y -f ~/.ssh/id_rsa
ssh-rsa AAAAB3....Twk5

Just in case you might need it one day!

Will you help me share this post?

It would mean a lot to me if you could help share this post on social media. 🤗