How to generate an SSH Key with Terminal so it works with GitHub

Posted on: February 24th, 2023
By: Tadeo Martinez

To generate a new key. Add a password so the key works with GitHub.


To add the key to GitHub, go to Settings => SSH and CPG keys => New SSH Key

To add new a key, you can specify a different name by entering the file path:


The first “name” will already be determined by the user in your Mac, you will need to specify “name_of_key” so it’s saved a new key that you can use later.

Have any questions or comments? Write them below!

Leave a Reply

Your email address will not be published. Required fields are marked *