华域联盟 Linux linux系统重装导致免密码key登录失败的解决方法

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登录失败的解决方法全部内容了,希望大家多多支持华域联盟~

您可能感兴趣的文章:

本文由 华域联盟 原创撰写:华域联盟 » linux系统重装导致免密码key登录失败的解决方法

转载请保留出处和原文链接:https://www.cnhackhy.com/53381.htm

本文来自网络,不代表华域联盟立场,转载请注明出处。

作者: sterben

发表回复

联系我们

联系我们

2551209778

在线咨询: QQ交谈

邮箱: [email protected]

工作时间:周一至周五,9:00-17:30,节假日休息

关注微信
微信扫一扫关注我们

微信扫一扫关注我们

关注微博
返回顶部