服务器重装后 SSH 不可以登录

一台服务器重新安装后,结果SSH报错

 

这是因为./ssh/known_hosts 的原因,可以先把这个文件MV一下,然后就可以了

 

然后再把生成的新的know_hosts给合并至刚才MV的那个文件,再重新给MV这个文件,一切都OK了

 

 

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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 the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
ed:07:d5:9f:05:7d:c1:fd:0c:7e:78:ae:df:a7:d8:72.
Please contact your system administrator.
Add correct host key in /home/bbu/.ssh/known_hosts to get rid of this message.
Offending key in /home/bbu/.ssh/known_hosts:19
RSA host key for 192.168.100.243 has changed and you have requested strict checking.
Host key verification failed.

你可能感兴趣的:(ssh)