登录一直报以下错误

spawn ssh -o StrictHostKeyChecking=no root@8.210.253.233
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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:LELLcDG55ebYMwIVRaqL7T+GZrBgHLBMKvnA2deCR0M.
Please contact your system administrator.
Add correct host key in /Users/xxx/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /Users/xxx/.ssh/known_hosts:63
Password authentication is disabled to avoid man-in-the-middle attacks.
Keyboard-interactive authentication is disabled to avoid man-in-the-middle attacks.
root@8.210.253.233: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).

一直在处理服务器的know_hosts文件,后来发现需要替换本机的。
使用以下命令即可

ssh-keygen -f ~/.ssh/known_hosts -R 服务器ip

理解为电脑其实对host有缓存,删除之后重新连接即可。