用ssh时 提示WARNING: POSSIBLE DNS SPOOFING DETECTED!处理方法 (2011-04-25 10:53:25)转载▼

1、起因:远程连接某一台Linux服务器A,然后又通过A来ssh连接另一台服务器B时发生

2、PUTTY返回提示信息如下:

user:/$ ssh xxx.xxx.xxx.xxx
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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
25:d7:4d:2f:2d:87:9d:5a:fe:d2:c3:d9:a4:e7:4c:9e.
Please contact your system administrator.
Add correct host key in /home/XXX/.ssh/known_hosts to get rid of this message.
Offending key in /home/sjcool/.ssh/known_hosts:3
RSA host key for [218.XXX.XXX.XXX]:22 has changed and you have requested strict checking.

3、网上类似情况的解决说明:
3.1
其实这是客户机问题,与SSH服务器无关,只需把.ssh目录下的文件删除即可。下次使用ssh时文件会重建的。
出现这问题的原因一般是同一主机使用了不同的用户名登陆。(如果多个域名和多个IP同时指向同一主机,ssh仍然视为不同主机。)
fuck@A8:/ cd fuck@A8:  cd ~ fuck@A8:~ cd .ssh/
fuck@A8:~/.ssh lsknownhostsfuck@A8: /.ssh ls known_hosts fuck@A8:~/.ssh rm known_hosts
再ssh一次就可以了!
以上是Linux的方法。
Windows下面也是大致相同,都是要找到.ssh文件夹。

4、解决办法:
删除~/.ssh/known_hosts 的内容,然后重新连接即可

用ssh时 提示WARNING:相关推荐

  1. ssh时提示“WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED”

    本文转载自:known_hosts文件作用,以及常见问题 当遇到以下问题: root@ibox:~# ssh 192.168.20.46 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ ...

  2. QtCreator 编译时提示 warning C4819 的解决办法

    QtCreator 编译时提示 warning C4819 的解决办法 用 QtCreator 和Visual C++ 编译器编译程序时经常会出现类似的警告: warning C4819: 该文件包含 ...

  3. 前天在一直Linux根文件系统时提示WARNING: Unable to open an in...

    2019独角兽企业重金招聘Python工程师标准>>> 启动时出现 Warning: unable to open an initial console. 解决办法 删掉root目录 ...

  4. CentOS 6.5下SSH总提示Warning: Permanently added '****' (RSA) to the list of known hosts.

    通过了免密码验证后,但每次ssh或者scp的时候还总是提示: Warning: Permanently added '***(IP)' (RSA) to the list of known hosts ...

  5. 问题处理1:服务器U盘安装Centos 7.5时提示Warning:/dev/root does not exist

    在安装centos7.5时,有可能会出现Warning:/dev/root does not exist 这是没有找到正确的镜像路径导致的,我们可以在命令行输入ls /dev看一下有哪些盘符 像图中红 ...

  6. rpm安装软件时提示warning::Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY

    在centos6.5上安装jdk-8u181-linux-i586.rpm时,出现warning::Header V3 RSA/SHA256 Signature, key ID ec551f03: N ...

  7. U盘安装centos 7 提示 “Warning: /dev/root does not exist, could not boot” 解决办法

    安装centos 7时提示 "Warning: /dev/root does not exist, could not boot" 这个问题是没有找到你的U盘,这个配置是需要在上一 ...

  8. php touch 无效,php提示 Warning: touch() [function.touch]: Utime failed: Permission denied in错误...

    在使用php程序时提示Warning: touch() [function.touch]: Utime failed: Permission denied in错误,下面一起来看看此问题的解决办法. ...

  9. php utime,php提示 Warning: touch() [function.touch]: Utime failed: Pe

    在使用php程序时提示Warning: touch() [function.touch]:Utime failed:Permission denied in错误,下面一起来看看此问题的解决办法. 使用 ...

最新文章

  1. 介绍Python中方法ljust(),rjust(),center()和zfill()
  2. Git 下载很慢问题解决方案
  3. python linux 优化_Linux性能优化(一)
  4. linux中的运行模式,Linux系统运行模式介绍
  5. MySQL5添加外键约束错误 (Error Code : 1005)
  6. 【shell基础】10、函数
  7. How to Configure Eclipse for Python --- 在eclipse中如何配置pydev
  8. 深入浅出Lua虚拟机
  9. ElasticSearch 如何使用 TDigest 算法计算亿级数据的百分位数?
  10. TCP和UDP的不同
  11. jruby环境下REDMINE安装纪要
  12. ASP.NET WebApi 路由配置【转】
  13. php分页类函数,php分页类的使用方法
  14. Hive On Spark搭建报错:Failed to create Spark client for Spark session xx: ..TimeoutException
  15. 基于同义词词林扩展版的词语相似度计算
  16. html transition属性,Transition属性详解
  17. 直接启动htpp服务
  18. 惠普暗影精灵II代pro进入biso
  19. 微信公众号服务器端脑图,微信公众号中隐藏的思维导图工具,帮你随时随地高效思考...
  20. 关于POS终端安全 PCI做了哪些要求?

热门文章

  1. QQ浏览器上线安全联盟认证 保护网购安全
  2. python整型转化浮点型_Python数值类型(整形、浮点型和复数)及其用法
  3. 服务器d盘位置不可用,win10系统无法访问D盘提示“位置不可用 拒绝访问”的解决办法...
  4. vue + mavon-editor编辑器
  5. win7驱动人生_插入U盘没反应不显示盘符?驱动人生一键解决。
  6. 《变4》巨幕热播 拉动客厅影院级电视需求
  7. 细讲前端设置cookie, 储存用户登录信息
  8. 按键精灵_50多个特殊文件夹路径的获取方法
  9. 免费搭建网站环境php环境 面板安装简单易用
  10. 【日常】记一次烦人的Apple Airport Express Base Station配置