zoukankan      html  css  js  c++  java
  • ssh问题_1

    昨天配置了虚拟机的ssh,可以相互连接,但是今天早上就不行了,遇到如下错误

    [slave1@hadoop ~]$ scp .ssh/id_rsa.pub master@hadoop.master:~/
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    @       WARNING: POSSIBLE DNS SPOOFING DETECTED!          @
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    The RSA host key for hadoop.master has changed,
    and the key for the corresponding IP address 192.168.62.130
    is unchanged. This could either mean that
    DNS SPOOFING is happening or the IP address for the host
    and its host key have changed at the same time.
    Offending key for IP in /home/slave1/.ssh/known_hosts:2
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    @    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
    b9:01:69:34:98:01:9d:39:ed:a2:9a:2c:79:98:34:3d.
    Please contact your system administrator.
    Add correct host key in /home/slave1/.ssh/known_hosts to get rid of this message.
    Offending key in /home/slave1/.ssh/known_hosts:5
    RSA host key for hadoop.master has changed and you have requested strict checking.
    Host key verification failed.
    lost connection
    

     解决方法:#ssh-keygen  -R IP(这个IP就是你要去连接的IP)

  • 相关阅读:
    Windows下安装ZooKeeper
    解决不同库之间$对象的冲突
    Entity Framework的基本操作
    IIS6与IIS7中的w3wp工作进程
    Asp.Net网站的的编译与发布原理
    MVC中JavaScript和CSS的自动打包与压缩
    EF CodeFirst示例
    EF CodeFirst下的自动迁移
    分布式调度平台XXL-JOB源码分析-时序图
    分布式调度平台XXL-JOB源码分析-执行器端
  • 原文地址:https://www.cnblogs.com/numen-fan/p/6644728.html
Copyright © 2011-2022 走看看