From Source Tree, I get:
git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree push -v --tags origin refs/heads/master:refs/heads/master
Pushing to myusername@bitbucket.org:myusername/my-project.git
myusername@Bitbucket.org: Permission denied (publickey).
fatal: Could not read from remote repository.
But, if I copy that to the terminal, and it works fine.
I verified that ls ~/.ssh/id_rsa has the same key as found on bitbucket. And I've run
ssh-add ~/.ssh/id_rsa which says "Identity added"
I'm running OSX 10.13.4, Source Tree 2.7.3, BitBucket Media Adapter 1.0.6.
My SourceTree preferences / accounts are set to OAuth/SSH but I've tried Oauth/HTTPS, Basic/SSH, and Basic/HTTPS but I still get the same error.
It use to work. And one time after playing with it for an hour, I got it to work again. But, now SourceTree fails again and I did't do a thing.