Today I try to clone my GitHub repository through SSH instead of https as usual.
-
Create an pair of SSH key using Puttygen and put to ~.ssh\ folder (Windows C:\User~.ssh) id_rsa id_rsa.pub
-
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" />
- Choose Allow write access if you want to allow push
- 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