0
点赞
收藏
分享

微信扫一扫

ssh连接服务器出现问题

三次方 2022-03-12 阅读 108

服务器重装系统后使用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地址]

重新连接一次,发现问题就解决了

举报

相关推荐

0 条评论