The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events