今天使用ssh远程登录时出现了如下问题:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
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:xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Please contact your system administrator.
Add correct host key in xxxx/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in xxx/.ssh/known_hosts:3
ECDSA host key for xxxx has changed and you have requested strict checking.
Host key verification failed.
有点莫名其妙, 会不会是我修改了hosts文件导致的, 注意到Please contact your system administrator. 可能是权限问题, 加上sudo执行, 问题解决