微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

【ssh rsa失效或者重置过密码、密钥对】

11:40:03 + ssh -o StrictHostKeyChecking=no [email protected] 'mkdir -p /root/dev/backup'
11:40:03 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
11:40:03 @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
11:40:03 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
11:40:03 IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
11:40:03 Someone Could be eavesdropping on you right Now (man-in-the-middle attack)!
11:40:03 It is also possible that the RSA host key has just been changed.
11:40:03 The fingerprint for the RSA key sent by the remote host is
11:40:03 7d:ef:cf:1b:b8:31:c2:3c:76:82:0a:dd:54:b5:b6:05.
11:40:03 Please contact your system administrator.
11:40:03 Add correct host key in /home/user/.ssh/kNown_hosts to get rid of this message.
11:40:03 Offending key in /home/user/.ssh/kNown_hosts:8
11:40:03 Password authentication is disabled to avoid man-in-the-middle attacks.
11:40:03 Keyboard-interactive authentication is disabled to avoid man-in-the-middle attacks.

方法一:进入/home/user/.ssh/kNown_hosts 把对应的ip的rsa删除即可

方法二: 

执行如下命令,重新生成ssh-rsa

ssh-keygen -R 192.168.xxx.146

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐