GIT-WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

报错:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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 the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
xxxx
Please contact your system administrator.
Add correct host key in /c/Users/Administrator/.ssh/known_hosts to get rid of this message.
Offending key in /c/Users/Administrator/.ssh/known_hosts:9
RSA host key for xxx 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.

解决方案:

依据字面意思,远程主机秘钥已经修改,而本地保存的还是上一个系统的秘钥。

删除存放ssh公钥秘钥路径下的known_hosts文件,或者删除日志中提示known_hosts的第几条的记录。然后重新执行。

猜你喜欢

转载自www.cnblogs.com/samad/p/12302434.html