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://firstname.lastname@example.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.
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 email@example.com
You can also run this command to see which key is your SSH agent currently offering:
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.
This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.Read more
Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...
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!
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