Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

SSH agent with Source Tree on Mac

I've recently upgraded to Mac OS 10.13 from 10.11. I also upgraded my sourcetree to the latest version (I can't remember what version I had before that unfortunately).

I have sourcetree setup to use SSH keys with both GitHub and Bitbucket and I've connected both accounts under preferences > accounts.

Previously when I would do a push, the first push of the day would ask me for my SSH key passphrase, but then I would be able to interact with the remote repo without needing to enter it again (presumably SSH agent was running in the background somewhere).

Now whenever I do a push I get a box saying "Password Required For user git on host", which is different to the box I used to receive asking for my passphrase. Entering the passphrase seems to work for this and there is an option to store the password in the keychain, but I don't want to do this (otherwise what's the point in the passphrase). How can I set this up so it works like it used to, presumably interacting correctly with SSH agent?

1 answer

1 vote
Manju Atlassian Team Jan 18, 2018

There are some changes in the OpenSSH on macOS that causes these issues. More details can be found in Apple's Technical Note -

You can check if the keys are loaded to the agent and if not, load them manually. This would just work fine with Sourcetree.

To check if key is loaded, use this command

ssh-add -l 

To load keys, use this command

ssh-add <path_to_key> 


ssh-add ~/.ssh/id_rsa 

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

3,392 views 4 5
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you