ubuntu10.10使用SSH报错

来源:网络 责任编辑:栏目编辑 发表时间:2013-07-01 06:17 点击:

 

以前使用SSH 登录公司服务器,挺好使!但是,今天它罢工了。

 

像往常一样,在终端输入命令登录服务器:

 

sudo ssh -l root 192.168.0.88 

 

sorry,它提示信息如下:

 

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 

@    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 

51:58:c2:b3:d3:7a:e6:bb:20:bd:5b:37:a1:87:cc:de. 

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 192.168.0.88 has changed and you have requested strict checking. 

Host key verification failed. 

 

linux 就是好,有了错误它会提示您错误在哪,根据打印信息,我解决了这个问题。

 

使用超级用户,为了进入root/ 目录:

 

su 

 

然后输入超级用户密码,进入/root/目录:

 

cd /root www.2cto.com

 

查看该目录下面的所有文件,然后发现.ssh目录,进入即可!

 

ls -al 

 

cd .ssh/ 

在该目录下面有个文件known_hosts,使用vim 打开该文件:

 

vim known_hosts 

 

删除里面的内容即可,如果你还怕出错,在删除内容之前可以备份!

 

再次使用SSH 登录,出现下面的信息:

 

The authenticity of host '192.168.0.88 (192.168.0.88)' can't be established. 

RSA key fingerprint is 51:58:c2:b3:d3:7a:e6:bb:20:bd:5b:37:a1:87:cc:de. 

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

 

yes 即可!搞定!

    相关新闻>>

      发表评论
      请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
      用户名: 验证码:点击我更换图片
      最新评论 更多>>

      推荐热点

      • /etc/fstab 详解
      • nginx主主集群
      •  LVS-NAT和LVS-DR模式的实现详解
      •  RHCE考试之磁盘配额
      • 学习笔记:ACL详解
      • suse linux双网卡双网关配置
      •  LVM逻辑卷管理器
      •  Nginx主主负载均衡架构
      • ubuntu学习Mysql

      快速直达

      操作系统导航

      LinuxWindows虚拟机
      网站首页 - 友情链接 - 网站地图 - TAG标签 - RSS订阅 - 内容搜索
      Copyright © 2008-2015 计算机技术学习交流网. 版权所有

      豫ICP备11007008号-1