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

Cannot push my-branch to Bitbucket (Cloud)

S_Yokoi
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 13, 2024

After creating and committing the develop1 branch from the main branch according to the following page, I could not push to BitBucket.

https://support.atlassian.com/bitbucket-cloud/docs/create-and-push-a-branch/
I could fetch and pull from the repository. Permissions to the repository are "write".
Error Message:

-----------------------------

$ git push origin develop1
Enter passphrase for key '/c/Users/xxxxx/.ssh/xxxxxxx':
Unauthorized
fatal: Could not read from remote repository.

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

------------------------------

Can you give me some advice?

Thank you.

1 answer

1 accepted

1 vote
Answer accepted
Syahrul
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 14, 2024

G'day, @S_Yokoi 

Welcome to the community!

May I know where did you add the SSH key? The reason I ask is because if you add the SSH key under repository settings, it will only provide you with read permission. 

So, if you want to write into the repository, you should add the SSH key under your personal Bitbucket settings at:

https://bitbucket.org/account/settings/ssh-keys/

Let me know how it goes after changing the SSH key location.

Regards,
Syahrul

S_Yokoi
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 15, 2024

Dear Syahrul.

I was able to solve the problem exactly the way you suggested.

I registered and was able to Push successfully.

I was confused because the documentation did not say ”Register the SSH key on the personal settings page".

Thank you very much.

Regards,

S.yokoi

Like # people like this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events