解决ssh连接报错WARNING REMOTE HOST IDENTIFICATION HAS CHANGED!

解决ssh连接报错WARNING REMOTE HOST IDENTIFICATION HAS CHANGED!

在远程服务器上重置了系统,生成了新的ssh,使用本地powershell连接时报错

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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 xxxx

但使用mobaxterm连接时正常

解决方法: 删除user目录下.ssh中的 【known_hosts】 文件

解决ssh连接报错WARNING REMOTE HOST IDENTIFICATION HAS CHANGED!_第1张图片

重新连接即可

你可能感兴趣的:(操作系统,ssh)