Mirroring to bitbucket

Problem to solve

I’m working on how to sync a repositoty, hosted on a self-managed gitlab-ce version, to bitbucket.

Steps to reproduce

  • Create a test repository on bitbucket i.e. TestSyncGitlab with README and .gitignore files
  • On Gitlab-ce: Import the TestSyncGitlab repository to Gitlab using Import projects from Bitbucket
  • On Gitlab-ce: choose the TestSyncGitlab repository, then Settings → Repository → Mirroring repositories
  • Configure the mirror repository
  • Click on UPDATE NOW button
  • Wait until get the error:
    13:get remote references: create git ls-remote: exit status 128, stderr: “No ED25519 host key is known for bitbucket.org and you have requested strict checking.\r\nHost 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”.

but the command git clone ssh://git@bitbucket.org/OWNER/testsyncgitlab.git works fine on the server.


Add new mirror repository
URL: ssh://git@bitbucket.org/OWNER/testsyncgitlab.git
Mirror direction: PUSH
Choose SSH as Authentication method
User name: OWNER



  • GitLab (Web: /help or [self-managed system information]

System information
System: Ubuntu 22.04
Current User: git
Using RVM: no
Ruby Version: 3.1.4p223
Gem Version: 3.5.5
Bundler Version:2.5.5
Rake Version: 13.0.6
Redis Version: 7.0.15
Sidekiq Version:7.1.6
Go Version: unknown

GitLab information
Version: 16.9.2
Revision: 8443896c867
Directory: /opt/gitlab/embedded/service/gitlab-rails
DB Adapter: PostgreSQL
DB Version: 14.10
SSH Clone URL: ssh://git@
Using LDAP: no
Using Omniauth: yes
Omniauth Providers: bitbucket

GitLab Shell
Version: 14.33.0
Repository storages:

  • default: unix:/var/opt/gitlab/gitaly/gitaly.socket
    GitLab Shell path: /opt/gitlab/embedded/service/gitlab-shell


  • default Address: unix:/var/opt/gitlab/gitaly/gitaly.socket
  • default Version: 16.9.2
  • default Git Version: 2.43.0