Create
cancel
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

SourceTree Unable to Push to BitBucket

Not sure what happened, but I am now unable to push git changes to BitBucket. I have not changed any settings or public keys. I see my public key listed in BitBucket and it matches what I have in SourceTree.

This is the error I am getting:

git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree push -v --tags archeryscorekeeper refs/heads/master:refs/heads/master

Pushing to ssh://git@bitbucket.org/davidoshiro/archeryscorekeeper.git

Permission denied (publickey).

fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.

 

1 answer

1 vote
Ana Retamal Atlassian Team May 02, 2017

Hi David, are you also getting this issue when pushing from the command line?

If you do, it could be that Bitbucket could not authenticate you with the key that was offered by your SSH agent. You can run this command from your terminal and see which username is attempting to connect to Bitbucket:

ssh -Tv git@bitbucket.org

You can also run this command to see which key is your SSH agent currently offering:

ssh-add -L

Note that with ssh-agent management Bitbucket uses the first key in the list. 

If you're not having any problems when using the command line, please let us know which SourceTree version do you have and which OS so we can continue helping you with this.

Regards,

Ana

Suggest an answer

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

Sourcetree for Windows - CVE-2019-11582 - Remote Code Execution vulnerability

A vulnerability has been published today in regards to Sourcetree for Windows.  The goal of this article is to give you a summary of information we have gathered from Atlassian Community as a st...

5,198 views 0 12
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