在 mac 上用 shh 连接虚拟机上的 Ubuntu 时,出现下面的问题。
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ 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:N+SULKWlfmcQZ6DBGW1k8YwqDHZKWznaGLlNdti+Ng4. Please contact your system administrator. Add correct host key in /Users/kendall/.ssh/known_hosts to get rid of this message. Offending ED25519 key in /Users/kendall/.ssh/known_hosts:4 Host key for kendall has changed and you have requested strict checking. Host key verification failed.
这是由于 Ubuntu 的标识证书失效导致的
问题解决$ cd ~/.ssh $ vim known_hosts
删掉之前的证书
然后再使用 ssh 连接,就可以啦。
问题成功解决



