Git拉取失败报错:Update failed @@@@@@ WARNING: POSSIBLE DNS SPOOFING DETECTED! @@@@@@ The RSA host key for @@@@@@@@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
Git拉取失败报错:
Update failed @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: POSSIBLE DNS SPOOFING DETECTED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ The RSA host key for [gitlab.xxx.com]:12358 has changed, and the key for the corresponding IP address [110.xx.x.111]:12358 is unknown. This could either mean that DNS SPOOFING is happening or the IP address for the host and its host key have changed at the same time. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ 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 SHSFDSSDFS9CCS 0vcZSFDSFDS sfsfssSFSFSFSSSDFSF. Please contact your system administrator. Add correct host key in /c/Users/Admin/.ssh/known_hosts to get rid of this message. Offending RSA key in /c/Users/Admin/.ssh/known_hosts:2 RSA host key for [gitlab.xxx.com]:12358 has changed and you have requested strict checking. Host key verification failed. Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
解决办法:
1、打开C盘找到用户,正在使用的用户目录下找到“.ssh”文件夹下的 “known_hosts”文件(如:C:\Users\61065\.ssh)
2、先把原有的备份一下,用编辑器打开清空里边的内容,然后再次拉取和提交即可。