git clone代码时候出现的报错
Posted php小小菜鸟
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了git clone代码时候出现的报错相关的知识,希望对你有一定的参考价值。
git clone git@gitlab.xxxils.cn:xxxia/admin.git
Cloning into \'admin\'...
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: POSSIBLE DNS SPOOFING DETECTED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
The ECDSA host key for gitlab.xxls.cn has changed,
and the key for the corresponding IP address xx.xxx.xx.138
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 ECDSA key sent by the remote host is
SHA256:RIlRjsMUfj3RHw1q0CrxdIqJxGVuo6DMP3Vfg.
Please contact your system administrator.
Add correct host key in /Users/xxxxli/.ssh/known_hosts to get rid of this message.
Offending RSA key in /Users/xxxli/.ssh/known_hosts:2
ECDSA host key for gitlab.xxxxls.cn 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.
图示:⬇️
以上需要运行:
rm ~/.ssh/known_hosts
然后在clone问题解决
以上是关于git clone代码时候出现的报错的主要内容,如果未能解决你的问题,请参考以下文章
Git clone命令出现"fatal repository not found"错误
源码编译nginx的时候,出现“make: *** 没有指明目标并且找不到 makefile。 停止“。的报错的解决方法