Welcome 微信登录
编程资源 图片资源库 蚂蚁家优选

首页 / 操作系统 / Linux / SSH: Ubuntu 10.10使用SSH报错

以前使用 SSH 登录公司服务器,挺好使!但是,今天它罢工了。像往常一样,在终端输入命令登录服务器:
  1. sudo ssh -l root 192.168.0.88  
sorry,它提示信息如下:
  1. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@  
  2. @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @  
  3. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@  
  4. IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!  
  5. Someone could be eavesdropping on you right now (man-in-the-middle attack)!  
  6. It is also possible that the RSA host key has just been changed.  
  7. The fingerprint for the RSA key sent by the remote host is  
  8. 51:58:c2:b3:d3:7a:e6:bb:20:bd:5b:37:a1:87:cc:de.  
  9. Please contact your system administrator.  
  10. Add correct host key in /root/.ssh/known_hosts to get rid of this message.  
  11. Offending key in /root/.ssh/known_hosts:1  
  12. RSA host key for 192.168.0.88 has changed and you have requested strict checking.  
  13. Host key verification failed.  
Linux 就是好,有了错误它会提示您错误在哪,根据打印信息,我解决了这个问题。使用超级用户,为了进入 root/ 目录:
  1. su  
然后输入超级用户密码,进入/root/目录:
  1. cd /root  
查看该目录下面的所有文件,然后发现.ssh目录,进入即可!
  1. ls -al  
  2.   
  3. cd .ssh/  
在该目录下面有个文件 known_hosts,使用 vim 打开该文件:
  1. vim known_hosts  
删除里面的内容即可,如果你还怕出错,在删除内容之前可以备份!再次使用 SSH 登录,出现下面的信息:
  1. The authenticity of host "192.168.0.88 (192.168.0.88)" can"t be established.  
  2. RSA key fingerprint is 51:58:c2:b3:d3:7a:e6:bb:20:bd:5b:37:a1:87:cc:de.  
  3. Are you sure you want to continue connecting (yes/no)?  
yes 即可!搞定!Fedora Utils 脚本升级支持Fedora 16Ubuntu 10.10下MPlayer无法快进avi视频相关资讯      SSH  Ubuntu教程 
  • SSH/SSL 源码编译安装简易操作说明  (今 07:03)
  • Mac使用ssh出现permission denied(  (03月23日)
  • Mac OS X下配置远程Linux 服务器  (12/22/2015 15:21:41)
  • Teleport:面向集群及团队的 SSH  (04月11日)
  • 如何在 CentOS / RHEL 上设置 SSH   (01月18日)
  • SSH相互信任配置  (12/20/2015 19:58:17)
本文评论 查看全部评论 (0)
表情: 姓名: 字数