ssh报错: WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
目录
[TOC]
报错
$ ssh [email protected]
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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 ED25519 key sent by the remote host is
SHA256:j968Ub/V2U0YsP0iZ5OjGylCZqANpHy2uhnp8uAEzqs.
Please contact your system administrator.
Add correct host key in /Users/xxx/.ssh/known_hosts to get rid of this message.
Offending ED25519 key in /Users/xxx/.ssh/known_hosts:153
Host key for 192.168.2.22 has changed and you have requested strict checking.
Host key verification failed.
解决方法:重置fingerprint即可
ssh-keygen -R 192.168.2.22