linux系统重装导致免密码key登录失败的解决方法
在一台linux机器上ssh远程另外一台linux服务器时候出现:
[root@server .ssh]# ssh 192.0.50.80
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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
97:d3:d4:f1:c9:c6:2e:40:93:b2:a8:70:45:e8:d2:6c.
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:1
rsa host key for 192.0.50.80 has changed and you have requested strict checking.
host key verification failed.
[root@server .ssh]#
这种情况是因为要ssh的机器上的ssh重新安装或者系统重装了,导致rsa host key 失效,解决方法:mv /root/.ssh/known_hosts /tmp即可重新登录
以上就是小编为大家带来的linux系统重装导致免密码key登录失败的解决方法全部内容了,希望大家多多支持~