Hello, Below is the error message returned when pushing/pulling to git. I didn't change anything. Just got in work today and things are totally broken. I am using Mac OSX High Sierra, 10.13.6
""" git@github.com: Permission denied (publickey). Fatal: Could not read from remote repository. """
I tried to delete my account in Sourcetree preferences, and recreate. I double checked my account user name by logging directly into GitHub.com - no problem. I tested Sourcetree on other machines in my office (Windows), they work fine.
I then attempted to downgrade from 2.7.3 to 2.6. this also didn't work. I see there are numerous threads on your forums regarding this, and this seems to be an ongoing bug. I am totally stuck and cannot proceed with my work.
What is the way forward. Thanks in advance!
Please check if the ssh-agent has your keys loaded. If not, please add them to the agent.
Run below commands in terminal to do so,
To check if keys are loaded:
ssh-add -l
To add keys to agent:
ssh-add <path_to_key>
more like,
ssh-add ~/.ssh/id_rsa
Key in the passphrase used while generating the ssh key and you should be good to go.
Hi, thanks for the response!
Is this relevant if I am using HTTPS?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I pasted below the full error. I hope that is helpful. Still unable to use SourceTree. I'm using the HTTPS mode, not SSH.
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.
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.
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.
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.
Completed with errors, see above
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This definitely isn't an error you should see with https. Can you check the account configuration in Sourcetree and also verify that the remote URL in the repository is indeed https?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
that was it. looks like perhaps when Sourcetree updated it clobbered the URL's for all my repo's. I reset to https now all is well. thanks for the help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.