Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
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

Need to create new ssh key every time I try to push to remote

Deleted user Aug 31, 2019

Every couple of days, when I want to push updates to Bitbucket via Sourcetree, I get a "Could not read from remote repository." error.

To solve that I deed to delete my ssh key form my computer (Mac Pro) and my Bitbucket account and create a new one. Then I can push to remote until I try again a couple of days later. Then I have to replace the ssh keys again.

This started after I updated the Sourcetree app which is on Version3.2.1 (225) now and seems to be the current version.

2 answers

1 accepted

0 votes
Answer accepted

Hi @[deleted] ,

It could be an issue where the ssh agent used by Sourcetree does not have the SSH key stored. Perhaps, you could attempt on:

  1. Click the Console / Terminal button
  2. In the new CLI console / terminal, type
    ssh-add -K ~/.ssh/<git_key_name>
    # provide the location where the SSH key
  3. Back in the Sourcetree UI, try doing a fetch an verify the log output

Kind regards,

Deleted user Sep 01, 2019

I have been working on my project so I needed to to a push to Bitbucket again. I did what you suggested first and the push worked as expected again. Thanks, @Rafael Pinto Sperafico !

0 votes

Hm, I would say it's problem source tree, 

Could you check error logs for source tree ?

Suggest an answer

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

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

4,399 views 12 15
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