fatal: Could not read from remote repository.

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

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 Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

636 views 0 4
Read article

Atlassian User Groups

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!

Find my local user group

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

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot