git

git克隆遇到的known_hosts问题

发布于 2020-09-20 11:25:17

在克隆一个新项目的时候遇到以下问题

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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:Mfz/6fHY+GxE6AJ1wIKhToQt7aU6R7rgOOKULydeNDQ.
Please contact your system administrator.
Add correct host key in /c/Users/Administrator/.ssh/known_hosts to get rid of this message.
Offending RSA key in /c/Users/Administrator/.ssh/known_hosts:5
RSA host key for 127.0.0.1 has changed and you have requested strict checking.
Host key verification failed.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

如何解决?

查看更多

关注者
0
被浏览
34
bobneo
bobneo 认证专家 2020-09-20
为自由而编程,因编程而自由。联系QQ:632906391
2 个回答
bobneo
bobneo 认证专家 2020-09-20
为自由而编程,因编程而自由。联系QQ:632906391

遇到这种问题,通常是因为konwn_hosts文件中对应的ip认证信息有误,删除即可

撰写答案

请登录后再发布答案,点击登录

发布
问题

分享
好友

手机
浏览

扫码手机浏览