Host key verification failed.(关于git clone失败的一个问题)

$ git clone git@...:/home/git/chess.git
Cloning into 'chess'...
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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:4rOp+/jmb7MdmddGTFary827soKEiQ+tuV9xLNjR5jk.
Please contact your system administrator.
Add correct host key in /c/Users/zhu/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /c/Users/zhu/.ssh/known_hosts:5
ECDSA host key for 13.47.81.101 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
把关于这个ip的记录删了就可以了。
我的在/c/Users/zhu/.ssh/known_hosts

你可能感兴趣的:(Host key verification failed.(关于git clone失败的一个问题))