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

Your Points Tracker
Challenges
Leaderboard
  • 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
Recognition
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?
Kudos
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

Pushing to remote in Sourcetree failing but succeeding with

I have a repository that uses 3 remotes. One is the managed remote hosted at bitbucket (origin). No problems with this one.

The second and third are remotes used for staging and production deployment at my hosting provider. When I installed a new version of sourcetree for MacOS (2.7 I believe?) pushing to these other two remotes began failing.

 

I suspect this has to do with the way sourcetree prompts for the passphrase for my private key (it doesn't), because I can push using system git from the command line (which sourcetree is also using) using the same command copied and pasted from the sourcetree's console window invoked from the push to repository dialog box, and this works fine. Pushing from my IDE also works fine. Only sourcetree is failing.

Any ideas? If it is, as I suspect, an issue of prompting me for my passphrase (or rather, the fact that sourcetree is not doing so), is there any way to force this to happen again?

Screen Shot 2018-02-11 at 5.28.49 PM.pngScreen Shot 2018-02-11 at 5.29.56 PM.png

1 answer

1 accepted

0 votes
Answer accepted
Manju Atlassian Team Feb 12, 2018

Can you please check if your ssh keys are loaded to the ssh agent on your mac? If they are not loaded, please load them to the agent. You can run below commands in terminal to setup keys

Check for keys in agent using 

ssh-add -l

Add Keys using 

ssh-add <path_to_key>

like,

ssh-add ~/.ssh/id_rsa

 

Thanks! 

that did it, i didn't know sourcetree was using the ssh agent! thank you very much!

Suggest an answer

Log in or Sign up to answer
TAGS
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,246 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