fatal: Could not read from remote repository.

Shmuel Livshits October 3, 2017

Hi. I getting this error ": Could not read from remote repository ". I've dove everithing what is written here  https://stackoverflow.com/questions/16074832/cannot-push-to-git-repository-on-bitbucket

but nothing changed

 

1 answer

0 votes
Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 4, 2017

Hi Shmuel, are you using SSH or HTTPS to connect to Bitbucket?

If you're using SSH it could be that Bitbucket could not authenticate you with the key that was offered by your SSH agent. Can you run this command from your terminal and show us the output? This will attempt to create a connection to Bitbucket for Git and tell you which username is using: 

ssh -Tv git@bitbucket.org

Also, run this command to see which key is your SSH agent currently offering:

ssh-add -L

If you don't see your key listed, you can add it by:

ssh-add ~/.ssh/identity

Note that with ssh-agent management Bitbucket uses the first key in the list. If you are still having problems, try removing all but the identity you want to connect with, to do this:

ssh-add -d ~/.ssh/identity

Hope that helps!

Ana

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events