克隆GitLab存储库主机密钥验证失败。致命:无法从远程存储库中读取

发布于 2025-01-31 10:51:50 字数 619 浏览 3 评论 0 原文

我正在尝试使用Visual Studio克隆存储库,但是此消息显示

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

我已经创建了一个SSH键并复制了Pub键

 ssh-keygen
 cat /c/Users/Toshiba/.ssh/id_rsa.pub

并将其添加到我的Gitlab帐户中 当我尝试从git bash上获得冠军时,我会明白

The authenticity of host 'gitlab.com (2606:4700:90:0:f22e:fbec:5bed:a9b9)' can't be established.
ED25519 key fingerprint is SHA256:eUXGGm1YGsMAS7vkcx6JOJdOGHPem5gQp4taiCfCLB8.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])?

我该怎么办?

I'm trying to clone a repository using visual studio but this message shows up

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

I've already created an ssh key and copied the pub key

 ssh-keygen
 cat /c/Users/Toshiba/.ssh/id_rsa.pub

and added it to my gitlab account
when I try to cloneit fromt git bash I get

The authenticity of host 'gitlab.com (2606:4700:90:0:f22e:fbec:5bed:a9b9)' can't be established.
ED25519 key fingerprint is SHA256:eUXGGm1YGsMAS7vkcx6JOJdOGHPem5gQp4taiCfCLB8.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])?

What should I do?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

注定孤独终老 2025-02-07 10:51:50

Typing yes is one thing. But it is sensible to check first if the fingerprint proposed is indeed the one of the remote GitLab server.

The ones for gitlab.com are shown here.
Since what you see (SHA256:eUXGGm1YGsMAS7vkcx6JOJdOGHPem5gQp4taiCfCLB8) matches one of those, you can type yes, and update your own c/Users/Toshiba/.ssh/known_hosts file.

There is a proposal (issue 25142) to expose those fingerprints on the server side, implemented with MR 13850 (and commit f913f7a) in GitLab 10.2 (Nov. 2017).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文