zoukankan      html  css  js  c++  java
  • WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

    [root@localhost ~]# ssh 172.17.0.135
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    @ 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 RSA key sent by the remote host is
    SHA256:n68rgNbkHuLve0/7STYDiD+oE/g1egasGi2uigu4diU.
    Please contact your system administrator.
    Add correct host key in /root/.ssh/known_hosts to get rid of this message.
    Offending RSA key in /root/.ssh/known_hosts:11
    RSA host key for 172.17.0.135 has changed and you have requested strict checking.
    Host key verification failed.

    今天远程ssh远端机器的时候发现了如下提示:怎么都连不上。

    解决办法:

    ssh会把你每个你访问过计算机的公钥(public key)都记录在/root/.ssh/known_hosts。当下次访问相同计算机时,OpenSSH会核对公钥。如果公钥不同,OpenSSH会发出警告,避免你受到DNS Hijack之类的。

    既然找到原因了,那就好解决了,直接编辑

    [root@localhost .ssh]# vim /root/.ssh/known_hosts

    找到你要链接的那个ip删除掉

  • 相关阅读:
    修改sqlserver2008中表的schema
    MongoDB学习笔记06
    MongoDB学习笔记05
    MongoDB学习笔记04
    在IIS Express中调试时无法读取配置文件
    Spring 集成Redis
    Java操作Redis(代码演示)
    Redis的一些常用命令操作
    Redis安装步骤
    如何彻底删除电脑安装的软件程序?
  • 原文地址:https://www.cnblogs.com/liwei1994/p/13345767.html
Copyright © 2011-2022 走看看