Repo SSH Authentication for Keys with Passphrase

Use a 3rd party tool for remote repo interaction (push, pull, etc).
Create an SSH key with a passphrase

  1. Create an ssh key: ssh-keygen -t rsa -b 4096 -C ""
  2. Enter the file name and hit enter, or leave the default (Mac: /User/<you>/id_rsa, Windows: /c/User/<you>/id_rsa, Linux: /home/User/<you>/id_rsa)
  3. Add a passphrase (and confirm)
  4. Add your key to the keychain: ssh-add ~/.ssh/id_rsa

My side notes... This is meant for me to come back to and easily do this; because I forget things like this. This comes from - Github has lots of lovely articles. With a whole lot of info and this is the TL;DR version. Incidentally, this came from issues I had with authentication using Source Tree (

Nathan Daniel

Read more posts by this author.

Atlanta, GA

Subscribe to Nathan P Daniel

Get the latest posts delivered right to your inbox.

or subscribe via RSS with Feedly!