Skip to content

Using ssh keys to push changes

dasarpmar edited this page Nov 25, 2014 · 2 revisions

The default method of pushing changes is via https and this requires you entering your username and password every time you push. If you do not want to keep entering your username and password, you can push changes via ssh instead.

First, set-up your ssh keys and access to git via them. Follow the instructions on https://help.github.com/articles/generating-ssh-keys/ to generate your keys, and set it up so that you can talk to github via the keys.

Once that is done, you can ask git to use ssh to push instead of https by:

$ git remote set-url origin git@github.com:YOUR_USERNAME/lowerbounds-survey.git

After this, all git push commands will push changes to origin via ssh. If you set-up your ssh keys with github, this should not requires any more authentication.

Clone this wiki locally