Github 的POSSIBLE DNS SPOOFING DETECTED处理

450阅读 0评论2023-06-17 starb6
分类:其他UNIX

 长时间没用Github了,在git push origin master 时,出现:

  WARNING: POSSIBLE DNS SPOOFING DETECTED! 

解决方案:
1:   cd ~/.ssh

    把known_hosts里github那行信息,删除或者注视掉(我选择了注释掉)
2:再运行  git push origin master 出现:
     The authenticity of host 'github.com (*)' can't be established.
ECDSA key fingerprint is ****.
Are you sure you want to continue connecting (yes/no)? 
Please type 'yes' or 'no': yes
Warning: Permanently added 'github.com,***' (ECDSA) to the list of known hosts.
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.

3: 上述问题,需要在Github上更新公钥。更新后再运行就好了。



上一篇:用python实现机器学习算法。
下一篇:如何把别人的代码库从Github提取到自己手上?