我正在嘗試使用 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
并在我嘗試從 git bash 克隆它時將其添加到我的 gitlab 帳戶中
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])?
我該怎么辦?
uj5u.com熱心網友回復:
輸入是是一回事。但是首先檢查所提出的指紋是否確實是遠程 GitLab 服務器的指紋是明智的。
的gitlab.com顯示在這里。
由于您看到的 ( SHA256:eUXGGm1YGsMAS7vkcx6JOJdOGHPem5gQp4taiCfCLB8) 與其中之一匹配,您可以鍵入 yes 并更新您自己的c/Users/Toshiba/.ssh/known_hosts檔案。
有一個提案(issue 25142)在服務器端公開這些指紋,在 GitLab 10.2(2017 年 11 月)中使用MR 13850(并提交 f913f7a)實作。
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/480022.html
