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
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.