ssh登录错误[@more@][root@localhost ~]# ssh 192.168.3.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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
b6:0c:41:43:60:79:eb:05:9e:c9:72:1d:a0:41:9a:50.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending key in /root/.ssh/known_hosts:5
RSA host key for 192.168.3.1 has changed and you have requested strict checking.
Host key verification failed.
网上搜索,说原因是因为在本地机器上曾经用SSH登录过这台远程计算机,因而留下了known_hosts的记录,在远程计算机重新安装系统后不能够通过鉴权
但是我并没有重装系统啊,先不管这个了
解决方案:打开文件
vim /root/.ssh/know_hosts
删除192.168.3.1的相关rsa的信息即可
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/23168012/viewspace-1045977/
,如需转载,请注明出处,否则将追究法律责任。