首页 > 其他分享 >使用SSH登录Debian报错 WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

使用SSH登录Debian报错 WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

时间:2022-11-08 22:25:14浏览次数:38  
标签:REMOTE CHANGED host 报错 ssh key hosts

ssh [email protected],提示出下报错信息

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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)!
  1 45.32.60.172 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEOnFSe9yLW07FHWpwYhNuv0I0it/m7e3nrE1G3HaxKx61hoKbnJNa7EpCGJi7XidZkMjIt is also possible that a host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
SHA256:/2qkxJbKtP2Sar5a5WesSj+hDhZxc3b2JqjOuxuKbOk.
Please contact your system administrator.
Add correct host key in /Users/linxp/.ssh/known_hosts to get rid of this message.
Offending RSA key in /Users/linxp/.ssh/known_hosts:2
RSA host key for 14.29.158.224 has changed and you have requested strict checking.
Host key verification failed.

原因是我之前已经登录过这个IP,但是因为一些原因重置了系统,只需要把~/.ssh/known_hosts下对应IP的内容清除即可

标签:REMOTE,CHANGED,host,报错,ssh,key,hosts
From: https://www.cnblogs.com/1lin24/p/16871417.html

相关文章