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

    今天用fuel重新搭建openstack环境,在路由器上ssh 172.16.0.2时,发现如下提示:

    [root@localhost ~]# ssh 172.16.0.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
    c3:03:d2:e2:43:26:a0:48:da:6d:87:e2:a6:23:19:10.
    Please contact your system administrator.
    Add correct host key in /root/.ssh/known_hosts to get rid of this message.
    Offending key in /root/.ssh/known_hosts:1
    RSA host key for 172.16.0.2 has changed and you have requested strict checking.
    Host key verification failed.

    原因很简单,重装了一下openstack环境(真特么简单= =。)

    解决办法:

    vi /root/.ssh/known_hosts

    172.16.0.2 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA1ev2GDBFvILQrU9gyCOp9JFuJ/zCeUls5UCRZd27P4TZ2Z6z5Hjn87cFqx/bgZN7HrY1hDkU0JHLXhUpS7KZj21HWgpiNqG+LtG7sQU1xxH/8dw18fm2q/RMYc8Fzc00XQkdctcqK0B4WfsS/s51p7WJSfPGl9PqcVeTB8flQwPLoPfjcrQtr/OeHcAvIScrpJjJK1BBtGO+g77WXlLpaq38c/w+tUw1POxem7cNxmXnOn+L9+KeMcCzy6hpKjZXwyJWqp+Ja1VkRpw77vzR2/xB2ThLCZzMrKJzKk4x3nfwV1Tldds9gSbrlPwFYzYoxjWqUXXIk+HSaVnS/0qH9w==

    把这一行删除掉;

    [root@localhost ~]# ssh 172.16.0.2
    The authenticity of host '172.16.0.2 (172.16.0.2)' can't be established.
    RSA key fingerprint is c3:03:d2:e2:43:26:a0:48:da:6d:87:e2:a6:23:19:10.
    Are you sure you want to continue connecting (yes/no)? yes
    Warning: Permanently added '172.16.0.2' (RSA) to the list of known hosts.
    Permission denied (publickey).

    修改/etc/ssh/sshd-config文件。

    PasswordAuthentication no修改为yes就可以了。

  • 相关阅读:
    关于GDI+的图片质量
    断点续传的Demo
    offic2007 ,offic2010安装失败 1935错误处理方案
    Easy Slider幻灯片 API
    Lazyload.js延迟加载效果
    MVC3中 多种跳转方式总结
    MVC中 DropDownList编辑默认选中的使用
    ASP.NET Session的七点认识
    easyui 的datagrid的自适应宽度的问题
    Linux常用文件操作高频使用命令
  • 原文地址:https://www.cnblogs.com/hbwxcw/p/6086718.html
Copyright © 2011-2022 走看看