linux系统重装导致免密码key登录失败的解决方法
在一台linux机器上ssh远程另外一台linux服务器时候出现:
[root@server.ssh]#ssh192.0.50.80
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING:REMOTEHOSTIDENTIFICATIONHASCHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
ITISPOSSIBLETHATSOMEONEISDOINGSOMETHINGNASTY!
Someonecouldbeeavesdroppingonyourightnow(man-in-the-middleattack)!
ItisalsopossiblethattheRSAhostkeyhasjustbeenchanged.
ThefingerprintfortheRSAkeysentbytheremotehostis
97:d3:d4:f1:c9:c6:2e:40:93:b2:a8:70:45:e8:d2:6c.
Pleasecontactyoursystemadministrator.
Addcorrecthostkeyin/root/.ssh/known_hoststogetridofthismessage.
Offendingkeyin/root/.ssh/known_hosts:1
RSAhostkeyfor192.0.50.80haschangedandyouhaverequestedstrictchecking.
Hostkeyverificationfailed.
[root@server.ssh]#
这种情况是因为要ssh的机器上的ssh重新安装或者系统重装了,导致RSAhostkey失效,解决方法:mv/root/.ssh/known_hosts/tmp即可重新登录
以上就是小编为大家带来的linux系统重装导致免密码key登录失败的解决方法全部内容了,希望大家多多支持毛票票~