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

    今天在使用scp命令上传文件到远端服务器时报如下错误,(ssh命令连接到远程服务器时也报同样的错误):

    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    @    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 the RSA host key has just been changed.
    The fingerprint for the RSA key sent by the remote host is
    38:26:00:4a:96:cc:43:f4:e8:99:a6:9b:d4:f8:55:e8.
    Please contact your system administrator.
    Add correct host key in /home/rusky/.ssh/known_hosts to get rid of this message.
    Offending key in /home/rusky/.ssh/known_hosts:4
    RSA host key for 192.168.1.123 has changed and you have requested strict checking.
    Host key verification failed.
    lost connection
    

    处理方法:

    删除known_hosts文件即可。

    rm  ~/.ssh/known_hosts 

  • 相关阅读:
    python之递归函数
    python之内置函数
    python之迭代器与生成器
    python之装饰器函数
    python之函数进阶
    python之初识函数
    一起学Android之Dialog
    一起学Android之Menu
    一起学Android之GridView
    一起学Android之ViewPager
  • 原文地址:https://www.cnblogs.com/rusking/p/5788212.html
Copyright © 2011-2022 走看看