Linode 各机房速度测试
http://www.linode.com/speedtest/
lizlizlee
V2EX  ›  Linode

关于linode 连接ssh错误

  •  
  •   lizlizlee · Apr 9, 2012 · 2588 views
    This topic created in 5174 days ago, the information mentioned may be changed or developed.
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    @ 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
    7d:46:cf:20:5e:f6:e8:60:95:e5:ee:3a:27:40:74:51.
    Please contact your system administrator.
    Add correct host key in /Users/leeliz/.ssh/known_hosts to get rid of this message.
    Offending key in /Users/leeliz/.ssh/known_hosts:1
    RSA host key for 106.187.90.109 has changed and you have requested strict checking.
    Host key verification failed.


    自己错手删除了ubuntu再重装好连接时出现这样的问题..

    大小白一个..请指教~~ @livida
    6 replies    1970-01-01 08:00:00 +08:00
    AntiGameZ
        1
    AntiGameZ  
       Apr 9, 2012
    在你.ssh/known_hosts里找到你服务器ip地址的那个记录,删掉即可
    lizlizlee
        2
    lizlizlee  
    OP
       Apr 9, 2012
    @AntiGameZ 删除了.可是有一篇文章说只能暂时解决..以后还会出现这样的错误.
    zhuzhuor
        3
    zhuzhuor  
       Apr 10, 2012
    你重装了linode的服务器呗
    然后服务器上的publickey重装的时候自动生成了个新的
    你ssh的时候电脑发现和之前的publickey不一样就给你了个warning
    没啥问题,先删掉known_hosts,之后不重装就不会再提示了
    eric_q
        4
    eric_q  
       Apr 10, 2012
    下次重装前,先备份/etc/sshd下的几个key,重装后再覆盖回去。
    lizlizlee
        5
    lizlizlee  
    OP
       Apr 18, 2012
    @eric_q 是的.备份了!谢谢~
    lizlizlee
        6
    lizlizlee  
    OP
       May 13, 2012
    明白了..

    因为默认设置 Run ssh as 'Root', 所以 ~/.ssh/known_hosts 不起作用
    sudo ssh-keygen -R hostname
    或者用filezilla进入 /var/root/.ssh/known_hosts 相关条目
    亦可勾空这个设置 修改 ~/.ssh/known_hosts 即可


    1.Shimo 的配置文件在 ~/Library/Application\ Support/Shimo/
    2.清空这个下面的 Configs (脚本) 和 Profiles (配置) 的文件即可清空 Shimo 配置
    3.log 在 ~/Library/Logs/
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5885 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 48ms · UTC 02:15 · PVG 10:15 · LAX 19:15 · JFK 22:15
    ♥ Do have faith in what you're doing.