【網管】ssh突然不能用了,怎麼辦?

我的系統環境:Mac OS X

bangdollPB:~ bangdoll$ uname -a
Darwin bangdollPB.local 8.10.0 Darwin Kernel Version 8.10.0: Wed May 23 16:50:59 PDT 2007; root:xnu-792.21.3~1/RELEASE_PPC Power Macintosh powerpc


無法登入遠端系統時,出現以下的訊息:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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 DSA host key has just been changed.
The fingerprint for the DSA key sent by the remote host is
ca:96:59:fb:12:6d:cf:01:34:05:d5:b0:38:fb:00:01.
Please contact your system administrator.
Add correct host key in /Users/bangdoll/.ssh/known_hosts to get rid of this message.
Offending key in /Users/bangdoll/.ssh/known_hosts:7
DSA host key for 220.132.208.15 has changed and you have requested strict checking.
Host key verification failed.


解決方法:
重點是上面的紅色字
請到該使用者的/Users/你的名字/.ssh/known_hosts
刪除裏面的東西就好了。

留言

  1. 其實它已經說了是第七行 /Users/bangdoll/.ssh/known_hosts:7
    故只要刪除第七行即可
    vim /Users/bangdoll/.ssh/known_hosts
    :7
    dd
    :wq!

    回覆刪除

張貼留言

熱門文章