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

Mirror Gitlab to Bitbucket Cloud - Authentication problem with bitbucket.

c0un7z3r0 March 14, 2024

I am trying to setup mirroring so that I can push any commits I make to my local gitlab instance to my bitbucket repo. I have created an access token on my bitbucket repo but any attempt to add it to the mirroring in gitlab results in authentication errors regardless of which protocol I use

BBucket.png

If I hover over the respective ERROR pill as shown in the screenshot it says the following:
SSH:
"13:get remote references: create git ls-remote: exit status 128, stderr: "Host key verification failed.\r\nfatal: Could not read from remote repository.\n\nPlease make sure you have the correct access rights\nand the repository exists.\n"."

HTTPS:
"13:get remote references: create git ls-remote: exit status 128, stderr: "remote: Invalid credentials\nfatal: Authentication failed for 'https://bitbucket.org/workspace-id/xxxx-repo-name-xxxx.git/'\n"." 

I am at a loss as to what the problem is, I know the credentials are correct. I have added bitbucket.org to my known-hosts and I dont know what to try next. Any help would be appreciated. Thank you

1 answer

1 vote
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 15, 2024

Hi,

For authentication via HTTPS:

If you use the credentials of a Bitbucket Cloud account, you need to use

If you use a Repository Access Token:

For SSH authentication, you would need to set up SSH keys. The message Host key verification failed. also indicates that the host key of Bitbucket cloud is not present in GitLab's known hosts. Do you perhaps have a link to the documentation you are following in order to set this up with SSH?

Just a heads up, I removed the workspace-id from your post to protect your privacy.

Please feel free to let me know if you have any questions.

Kind regards,
Theodora

Suggest an answer

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

Atlassian Community Events