Git clone using SSH

Posted by itungnt on Tuesday, December 22, 2015

Today I try to clone my GitHub repository through SSH instead of https as usual.

  1. Create an pair of SSH key using Puttygen and put to ~.ssh\ folder (Windows C:\User~.ssh) id_rsa id_rsa.pub

  2. Copy the content of pub file to create a new Deploy key in Repository Settings.

<img class="alignnone size-full wp-image-42" src="http://itungnt.com/wp-content/uploads/2016/01/githubssh.jpg" alt="githubssh" width="1061" height="633" />
  1. Choose Allow write access if you want to allow push
  2. Now you can do Git clone through SSH git clone [email protected]:YourRepo.git
Enter your pass pharse when created the ssh key if any</li> </ol>

comments powered by Disqus