修改IP地址之后认证信息问题

$ ssh lvph@172.16.20.20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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:8q59Vea97SHwY5B+wMC67vkt8BWmRedDhaVmeygHIjc.
Please contact your system administrator.
Add correct host key in /c/Users/prjz/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /c/Users/prjz/.ssh/known_hosts:9
ECDSA host key for 172.16.20.20 has changed and you have requested strict checking.
Host key verification failed.

执行

$ ssh-keygen -R 172.16.20.20
# Host 172.16.20.20 found: line 9
/c/Users/prjz/.ssh/known_hosts updated.
Original contents retained as /c/Users/prjz/.ssh/known_hosts.old

即可

posted @ 2019-12-12 20:42  lvph  阅读(170)  评论(0编辑  收藏  举报