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删除掉

  • 相关阅读:
    POJ4046 Sightseeing
    SGU 298. King Berl VI
    POJ1741 Tree
    POJ1639 Picnic Planning
    POJ1635 Subway tree systems
    [JSOI2008]最小生成树计数
    ftrace使用简介(三)
    make: *** 没有规则可以创建目标"menuconfig". 停止
    编译linux内核(ftrace)
    vim 缩进配置
  • 原文地址:https://www.cnblogs.com/liwei1994/p/13345767.html
Copyright © 2011-2022 走看看