|
|
|
|
 ssh 访问的问题 - sartpoint [ 2006-09-27 10:21 | 1,067 byte(s)]
 Re: ssh 访问的问题 - r00t [ 2006-09-28 13:27 | 254 byte(s)]
 Re: ssh 访问的问题 - sartpoint [ 2006-09-28 16:41 | 33 byte(s)]
|
|
|
|
[Original]
[Print]
[Top]
|
大家好我的机器刚刚装了linux系统,可是我可以用ssh登录到别人的机器上,别人不能用ssh访问我的机器。我查了下ssh服务,已经开启. 下面是出错的消息.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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
fe:18:a4:89:91:bb:45:48:b9:83:fa:5e:de:4b:33:a4.
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:2
RSA host key for 10.201.212.25 has changed and you have requested strict checking.
Host key verification failed.
难道是我的系统被人攻击了?
|
|
|
----
Crazy linux fans
|
|
[Original]
[Print]
[Top]
|
|
[Original]
[Print]
[Top]
|
从对方机器上删除ssh key的文件就可以了,ssh key是根据IP来作为索引保存在一个文件里的,如果你的IP地址以前也被使用过的话,那么ssh key就是原来的服务器的,使用原来服务器的key来访问你的新服务器,肯定就是不行的。
文件是这个:~/.ssh/known_hosts
|
|
|
----
|
|
[Original]
[Print]
[Top]
|
|
|