Fixing SSH for git on Mac OSX

A while back I setup my git repo to connect using ssh and rsa keys using the instructions listed here:

After taking several months off from my project, I returned to find that I was now being prompted for my passphrase for the ssh key. I double checked the steps on that help page, and everything seemed in order, yet I was still prompted for my passphrase.

The issue was that the instructions said in Step 3, "If you are running OSX 10.6.8 or later you can skip this step." Since I was running 10.12.4, I skipped that step. However, it seems that my ssh-agent lost my private key, perhaps when I updated OSX to a newer version. Running "ssh-add ~/.ssh/id_rsa" fixed the issue.

These instructions are great, but might be made slightly clearer by telling all users to execute step 3, just in case.



Log in or Join to comment
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

1,288 views 1 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot