Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

When I push code its shows error Could not read from remote repository? How can I do this

when I run command git push -f origin

It shows error below- Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Please help me out with this

1 answer

0 votes

Hello @Mansi Swami ,

Welcome to Atlassian Community! 

This error is usually returned when the SSH key being offered by your machine either does not have sufficient permissions to execute the action or was not properly added to your bitbucket account.

In this case, I would suggest following the instructions on the page Troubleshoot SSH issues for Bitbucket Cloud.

If after following those instructions you are still facing the error, I'd like you to share here the output of the following command: 

ssh -Tvvv

This will provide verbose logs of the SSH authentication and a possible indication of what is the issue.

Let me know if you have any questions.

Thank you, @Mansi Swami !

Kind regards,

Patrik S

Suggest an answer

Log in or Sign up to answer
Site Admin
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

3,498 views 3 10
Read article

Atlassian Community Events