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: https://confluence.atlassian.com/bitbucket/set-up-ssh-for-git-728138079.html

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.

0 comments

Comment

Log in or Sign up to comment
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

23,060 views 26 12
Join discussion

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