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

Getting Access denied error when we are trying to push our code to bit bucket for first time Permission denied (publickey).
fatal: Could not read from remote repository.

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


ogarcia Atlassian Team Jan 30, 2020

Hi Naveen. How are you?

The permission denied (publickey) error occurs typically when the SSH key hasn't been added to Bitbucket. We have an article that has more details on how to check and solve it. Would you please go over the knowledge base below and let us know the outcome?

Thank you.

Minh Tran Atlassian Team Jan 31, 2020

@Naveen Kumar Nethi You probably need to have the first commit for the repo in order to push it

So one easy way to do is to create a temporary with random content via the Bitbucket Cloud UI

After this, i believe you will be able to push your changes

Of course you will need to register your SSH public key with bitbucket


Log in or Sign up to comment
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...

2,084 views 2 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you