微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

git clone代码时候出现的报错

git clone [email protected]: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问题解决

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐