Friday, October 23, 2015

Github without password

You don't want to type your github password every time you push on your repo. What you need to do is simply to put your public key in github.

1. In the client where you want to clone your git repository just create a private / public key pair:

ssh-keygen -t rsa -b 4096

PS: Leave the keyring password blank
2. Copy your public key (your private will stay in your client) 
cat ~/.ssh/id_rsa.pub

3. Go to the github  SSH  keys settings page  and copy the public key above

4. You should be done! 

No comments:

Post a Comment