Jér*_*émy 25 git github ssh-keys
fetch今天,当我尝试从/pull到push我常用的 GitHub 存储库时,我最近收到以下错误:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
SHA256:uNiVztksCsDhcc0u9e8BujQXVUpKZIDTMczCvj3tD2s.
Please contact your system administrator.
Add correct host key in ~/.ssh/known_hosts to get rid of this message.
Host key for github.com has changed and you have requested strict checking.
Host key verification failed.
Run Code Online (Sandbox Code Playgroud)
我努力弄清楚如何解决它以及它从何而来。
Jér*_*émy 35
希望他们昨天发表了一篇关于它的文章!
长话短说,这是您问题的答案:
ssh-keygen -R github.com
curl -L https://api.github.com/meta | jq -r '.ssh_keys | .[]' | sed -e 's/^/github.com /' >> ~/.ssh/known_hosts
Run Code Online (Sandbox Code Playgroud)
但不要盲目相信我,看看博客文章: https://github.blog/2023-03-23-we-updated-our-rsa-ssh-host-key/
| 归档时间: |
|
| 查看次数: |
5734 次 |
| 最近记录: |