错误如下
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ 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:EqNh1hAtUqy3S2gUbuGX/g2gx+S6muA+mUdYT0puDik. Please contact your system administrator. Add correct host key in /Users/imacos.top/.ssh/known_hosts to get rid of this message. Offending ED25519 key in /Users/imacos.top/.ssh/known_hosts:24 Host key for 103.106.191.152 has changed and you have requested strict checking. Host key verification failed. imacos.top@Whitedeath1s-MacBook-Pro ~ % ssh-keygen -R [103.106.191.152] zsh: no matches found: [103.106.191.152] imacos.top@Whitedeath1s-MacBook-Pro ~ % ssh-keygen -R [root@103.106.191.152] zsh: no matches found: [root@103.106.191.152] imacos.top@Whitedeath1s-MacBook-Pro ~ % ssh-keygen -R 103.106.191.152 # Host 103.106.191.152 found: line 24 /Users/imacos.top/.ssh/known_hosts updated. Original contents retained as /Users/imacos.top/.ssh/known_hosts.old
这是最简单的解决方案:
ssh-keygen -R <host>
例如
ssh-keygen -R 192.168.3.10
原文链接:https://imacos.top/2023/11/13/ssh/,转载请注明出处。
评论0