ssh 链接远程服务器报错 WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

  • James
  • 1年前
  • 173 次阅读
  • 更新于 3天前
linux  

一、今天在使用SSH,连接远程服务器的时候,刚开始是没问题的。
后来阿里云主机重装了一下系统后,再也连不上了。一直报一个错。

~ ⌚ 22:49:52 $ ssh root@47.98.233.15 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ 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 a host key has just been changed. The fingerprint for the ECDSA key sent by the remote host is SHA256:8hgJ8jpcBr1tm6HS72FpXwMrjba8MQqlqYJQLPB/Qf4. Please contact your system administrator. Add correct host key in /Users/wangdong/.ssh/known_hosts to get rid of this message. Offending ECDSA key in /Users/wangdong/.ssh/known_hosts:26 ECDSA host key for 47.98.233.15 has changed and you have requested strict checking. Host key verification failed.

解决方法一、

 

二、解决方法,看错误日志中有一句 

Add correct host key in /Users/wangdong/.ssh/known_hosts to get rid of this message.

 

三、以编辑器的方式进入这个文件

 vi /Users/wangdong/.ssh/known_hosts

 

四、删除掉文件中链接的ip 那行

      比如:我上面连接的ip是47.98.233.15  找到他直接删除哪一行

 

五、再次进行远程连接ok

 

解决方法二、

ssh-keygen -R ip

 

原因:

地址:https://www.cnblogs.com/mengfanrong/p/5096590.html


   本站文章除注明转载/出处外,均为本站原创或翻译。若要转载但请务必注明出处,尊重他人劳动成果。    本文链接: http://james.dmzfa.com/articles/ssh-lian-jie-yuan-cheng-fu-wu-qi-bao-cuo-warning-remote-host-identification-has-changed

上一篇:利用scp传输文件

下一篇:【转】laravel下TNTSearch+jieba-php实现中...

文章评论 (0)发表评论

Top