REMOTE HOST IDENTIFICATION HAS CHANGED!

周海汉 /文

zhouhh@zhh64:~$ ssh -p 60066 192.168.20.28
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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
85:94:d5:5a:83:97:28:4c:ce:ea:5e:c1:f8:02:88:df.
Please contact your system administrator.
Add correct host key in /home/zhouhh/.ssh/known_hosts to get rid of this message.
Offending key in /home/zhouhh/.ssh/known_hosts:13
RSA host key for [192.168.20.28]:60066 has changed and you have requested strict checking.
Host key verification failed.

 

这是因为同一个IP远端的信息有变动,与存在本地的公钥不相符。

 

直接修改本地,将预存的信息去掉。

zhouhh@zhh64:~$ cd .ssh

zhouhh@zhh64:~/.ssh$ vi known_hosts

指到13行,用命令:13

dd 删除该行。

保存

你可能感兴趣的:(c,ssh,System)