zoukankan      html  css  js  c++  java
  • scp 的时候提示WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

     摘自:https://blog.csdn.net/haokele/article/details/72824847

     
     1 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
     2 @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
     3 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
     4 IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
     5 Someone could be eavesdropping on you right now (man-in-the-middle attack)!
     6 It is also possible that a host key has just been changed.
     7 The fingerprint for the ECDSA key sent by the remote host is
     8 33:98:ee:4c:1d:2d:c9:db:2c:51:57:11:a9:5f:0f:d2.
     9 Please contact your system administrator.
    10 Add correct host key in /root/.ssh/known_hosts to get rid of this message.
    11 Offending ECDSA key in /root/.ssh/known_hosts:3
    12 ECDSA host key for 192.168.25.226 has changed and you have requested strict checking.
    13 Host key verification failed.
    14 lost connection
     
     

    mac终端连接阿里云服务器报错WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

     

    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@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 isSHA256:这里每个人都不同Please contact your system administrator.Add correct host key in /Users/Anan/.ssh/known_hosts to get rid of this message.Offending RSA key in /Users/Anan/.ssh/known_hosts:1RSA host key for 这里是服务器的IP has changed and you have requested strict checking.Host key verification failed.

    会出现这些信息是因为,第一次SSH连接时,会生成一个认证,储存在客户端(也就是用SSH连线其他电脑的那个,自己操作的那个)中的known_hosts,但是如果服务器验证过了,认证资讯当然也会更改,服务器端与客户端不同时,就会跳出错误啦~因此,只要把电脑中的认证资讯删除,连线时重新生成,就一切完美啦~要删除很简单,只要在客户端输入一个指令

    ssh-keygen -R +输入服务器的IP

    接下来再次连接一次,会出现

    Are you sure you want to continue connecting (yes/no)?

    输入yes, 
    就完成连接啦!同时,新的认证也生成了 
    在mac下使用终端连接服务器方式

    ssh root@服务器地址

  • 相关阅读:
    【poj2828】Buy Tickets
    【hdu2795】Billboard
    【hdu1394】Minimum Inversion Number
    【BZOJ1012】 【JSOI2008】最大数maxnumber
    【hdu】p1754I Hate It
    【线段树模板】
    Day1
    synchronized底层原理
    Java之浅拷贝和深拷贝
    图解算法——恢复一棵二叉搜索树(BST)
  • 原文地址:https://www.cnblogs.com/LiuYanYGZ/p/9621427.html
Copyright © 2011-2022 走看看