git - 如何将 Azure DevOps 存储库镜像到 gitlab 存储库

标签 git azure ssh azure-devops gitlab

我已在 Azure 虚拟机上部署了自己的 GitLab 服务器。

我试图将现有的 Azure DevOps 存储库镜像到 GitLab 存储库中。

我遵循了正常程序:

  • 前往 GitLab 上的/settings/repository#js-push-remote-settings。

  • 展开镜像面板。

  • 我输入我的 git repo ssh URL

    ssh://<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="eb8c829fab989883c58f8e9dc58a919e998ec5888486" rel="noreferrer noopener nofollow">[email protected]</a>/v3/xxx/xxx/xxx
    
  • 这里我把v3前面原来的:替换成了/

  • 然后,我将 GitLab 生成的公钥添加到我的 Azure DevOps 公钥中。

触发镜像时,出现以下错误。

Host key verification failed.
fatal: Could not read from remote

根据我的研究,这是一个指纹问题。

但是,我如何验证该指纹?

最佳答案

verify the remote GitLab server SSH key ,你可以manually record the SSH key by running (issue 8867)

ssh-keyscan -t rsa ssh.dev.azure.com >> ~/.ssh/known_hosts

最好检查该命令的输出是否与存储库网页提到的服务器 SHA256 指纹匹配,如 in here :

fingerprint

关于git - 如何将 Azure DevOps 存储库镜像到 gitlab 存储库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71731928/

相关文章:

Azure Active Directory appRoleAssignments "Permission being assigned was not found on application"

azure - Azure AD 中 guest 用户的图形 API 请求

java - UserInfo 传递 yes click to function

python - 等待 paramiko exec_command 完成

Git:如何获取自某些提交以来所有修订的列表?

git - 致命的 : unable to access 'https://git-codecommit.us-east-1.amazonaws.com/v1/repos/lambda-pipeline-repo/' : The requested URL returned error: 403

git - 从私有(private) Bitbucket 安装 NPM 模块时主机 key 验证失败

Azure RM VM 硬盘

ssh - 如何将旧机器的私钥导入新机器?

git - 如何将 sublime-text-2 设置的 git 存储库克隆到另一台计算机