首页 > 其他 > 详细

服务器重装ip未更改,ssh连不上(WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED)

时间:2020-06-06 22:26:22      阅读:50      评论:0      收藏:0      [点我收藏+]

服务器重装ip未更改,ssh连不上

前言

重装了虚拟机,ip还保留了,但是发现连不上了

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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:+fniGCBsOCVoDRcIJrBc5x46D13paqRLuQwNDF5zECY.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /root/.ssh/known_hosts:1
ECDSA host key for 192.168.56.203 has changed and you have requested strict checking.
Host key verification failed.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

原因

当远程系统上的主机密钥发生更改时,或者因为它们是手动重新生成的,或者因为重新安装了ssh,新的主机密钥将与用户已知主机文件中存储的密钥不匹配,ssh将报告错误,然后退出。

解决方法

如果确定是创装服务器造成的,把当前ip的密匙删除就好了

# ssh-keygen -R 192.168.56.203

服务器重装ip未更改,ssh连不上(WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED)

原文:https://www.cnblogs.com/ricklz/p/13056738.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!