速度解决
ssh-keygen -R [your_ip]
例子:
ssh-keygen -R 192.168.111.142
###################################################################
问题描述
用git bash
终端连接虚拟机时候报错如下
miaoyi@DESKTOP-1HJP15G MINGW64 ~/Desktop
$ ssh root@192.168.118.90
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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:oCOxJInw+V2+wowK3/oAAEjreDH1oODGxZlLJjdi7Ec.
Please contact your system administrator.
Add correct host key in /c/Users/miaoyi/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /c/Users/miaoyi/.ssh/known_hosts:11
ECDSA host key for 192.168.118.90 has changed and you have requested strict checking.
Host key verification failed.
认真看报错信息就知道/c/Users/miaoyi/.ssh/known_hosts
(注意是windows下的目录)这个文件序号为11
的那里ECDSA key
错误。就是这样把这一行删除就行了
修改好之后再次连