Wednesday, January 25, 2017

Generate and Copy SSH Key

Hi Guys,

I am going to show you how to generate and copy ssh key from the console. For that you should have git bash installed in your Windows machine.

1. Generating RSA key pair run following command

   ssh-keygen -t rsa -C "tapashwani@example.com"

2. To copy RSA public key from the command prompt run following command

   pbcopy < ~/.ssh/id_rsa.pub
OR in Git bash 

   clip < ~/.ssh/id_rsa.pub


3. You can add this public key in your Git setting