Hi, I downloaded SourceTree 2.7.6 today, and encountered below error, so I am denied access to all remote git operations with sourcetree.
git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree fetch origin
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
FYI, my github account is added in SourceTree with Oauth, my ssh keys are well setted in local directory and in github account, and I can do all remote git operation in terminal using commands.
Please help me with this issue, Thank you!
EDIT:
problem solved after adding the key to ssh agent using below command
$ ssh-add -K ~/.ssh/id_rsa
BUT!!!!!!!!!!
after some experiment I think the private key must be named id_rsa for SourceTree to work, which is an inconvenience and should be solved by sourcetree developers!!!!!!!