git clone WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

梁兴文
2023-12-01

git clone出现下面的情况,

Cloning into 'MeiDeNi-WebApp'...

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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:Ii+ZxkyoDPXwDsCQn29jvq/SQVaDD8jg8Iq2bNbCnTI.
Please contact your system administrator.
Add correct host key in /Users/normanyang/.ssh/known_hosts to get rid of this message.
Offending RSA key in /Users/normanyang/.ssh/known_hosts:6
RSA host key for [gitlab.imacco.com]:2222 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.

谷歌之后解决方法如下:

打开vim ~/.ssh/known_hosts

删掉和当前clone 域名有关的ssh-rsa

重新git clone

完成

 类似资料:

相关阅读

相关文章

相关问答