找到known_hosts文件把里面相应的主机那行删除即可
MAC/Linux vi ~/.ssh/known_hosts Windows C:\Users\用户登陆名\.ssh\known_hosts
报错信息:
? ssh [email protected] @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ 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:JqlKtQzSrgYOb5Jm0BcNSAoyPjvz57srOKOfbUgvpeY. Please contact your system administrator. Add correct host key in /Users/zhan/.ssh/known_hosts to get rid of this message. Offending ECDSA key in /Users/zhan/.ssh/known_hosts:3 ECDSA host key for mongo.top has changed and you have requested strict checking. Host key verification failed. ? vi /Users/zhan/.ssh/known_hosts
重新登陆即可
原文地址:https://www.cnblogs.com/v5captain/p/12630278.html
时间: 2024-12-13 20:13:49