阿里云重置后mac用ssh登陆服务器失败
出现
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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:服务器发来的fingerprint
Please contact your system administrator.
Add correct host key in /Users/wakirencedemac/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /Users/wakirencedemac/.ssh/known_hosts:2
ECDSA host key for 服务器的IP地址 has changed and you have requested strict checking.
Host key verification failed.
原因:服务器被我重置了,发来的fingerprint跟我本地记录的不一样了 解决方法
ssh-keygen -R 服务器的IP地址
#例如
ssh-keygen -R 123.13.45.134