Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Getting Access denied error when we are trying to push our code to bit bucket for first time

Naveen Kumar Nethi January 30, 2020

git@bitbucket.org: Permission denied (publickey).
fatal: Could not read from remote repository.

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

2 comments

ogarcia
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 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?

https://confluence.atlassian.com/bbkb/permission-denied-publickey-302811860.html

Thank you.

Minh Tran
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 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 README.md 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

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events