ssh 连接报错 REMOTE HOST IDENTIFICATION HAS CHANGED

报错如下:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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:34qmBqGlMXZqOIwfVs4T2YuP0yJy+qvOAkexmiQRbVk.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /root/.ssh/known_hosts:3
ECDSA host key for 192.168.0.201 has changed and you have requested strict checking.

Host key verification failed.

解决步骤:

vi  /root/.ssh/known_hosts

删除对应ip的信息


再次设置免密钥就ok 了。

猜你喜欢

转载自blog.csdn.net/dpnice/article/details/80196439