How to Generate an SSH Public Key from a Private Key file

Опубликовано: 11 Март 2026
на канале: BrainTrust Digital
5,944
48

In this quick tip we use ssh-keygen to create public key file from a private key downloaded from Amazon.

We use ssh-keygen and a couple of flags '-f' to pass in a file and '-y' to derive a public file from the passed in private .pem file. Finally you can shove the output of this command into a .pub file for future use.

Related SSH videos
-------
How to create an SSH Config file tutorial
   • How to Create and Use an SSH Config File T...  

How to Generate SSH Keys
   • How to Generate SSH Keys  

My Gear List
http://brain-trust.io/my-gear

My YouTube SEO Software
https://www.tubebuddy.com/braintrust

My Accounting Software
https://shareasale.com/r.cfm?b=960179...

Make sure you subscribe to my channel to keep up to date with new content!

DISCLAIMER: Links included in this description might be affiliate links. If you purchase a product or service with the links that I provide I may receive a small commission. There is no additional charge to you! Thank you for supporting BrainTrust Digital so I can continue to provide you with free content each week!