阿里云重置后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

本文详细解析了在重置阿里云服务器后,使用Mac通过SSH登录遇到的问题及解决方法。当遇到远程主机身份验证警告时,文章指导如何更新本地SSH配置文件,以消除警告并成功连接服务器。
588

被折叠的 条评论
为什么被折叠?



