Code Snippets

How to Create SSH Key Pair

Follow these instructions to create or add SSH keys on Linux, MacOS & Windows. Windows users without OpenSSH can install and use PuTTY instead.

Create a new key pair, if needed

Open a terminal and run the following command:


You will be prompted to save and name the key.

Generating public/private rsa key pair. Enter file in which to save the key (/Users/USER/.ssh/id_rsa): 

Next you will be asked to create and confirm a passphrase for the key (highly recommended):

Enter passphrase (empty for no passphrase):
Enter same passphrase again:

This will generate two files, by default called id_rsa and Next, add this public key.

Copy and paste the contents of the .pub file, typically, into the SSH key content field on the left.

cat ~/.ssh/

Dmitry Pierce

I am passionate about understanding consumer behavior, identifying market trends, and creatively communicating the unique value of products or services to potential customers. I am driven by a desire to positively impact people's lives by helping businesses succeed.

Leave a Reply

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

Back to top button