服务器重装系统后使用ssh连接出现一下情况
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:RMDKJJLA1mT/lRoEKDU4qeFcydxqAHmMbYqtuw1JMmI. Please contact your system administrator. Add correct host key in /Users/onlyblue/.ssh/known_hosts to get rid of this message. Offending ECDSA key in /Users/onlyblue/.ssh/known_hosts:59
出现这个错误的原因是,本地的ssh和服务器的ssh对不上
只需要删除本地对应的ssh缓存信息
执行下面的命令
ssh-keygen -R [你的服务器公网ip地址]
重新连接一次,发现问题就解决了



