2012年(101)
分类: LINUX
2012-06-12 22:25:01
SSH或SFTP登录错误
oracle@bjhealth1 ~]$ sftp 10.1.112.235
Connecting to 10.1.112.235...
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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
b6:17:ae:3c:bf:b6:f4:44:9d:cc:3d:3d:59:a1:c8:72.
Please contact your system administrator.
Add correct host key in /home/oracle/.ssh/known_hosts to get rid of this message.
Offending key in /home/oracle/.ssh/known_hosts:4
RSA host key for 10.1.112.235 has changed and you have requested strict checking.
Host key verification failed.
Couldn't read packet: Connection reset by peer
原因:
当以前登录过的IP发生了变化之后,如更换或更新了操作系统,那么再次登录时就会出现上述错误,需要重置一下本地缓存文件。
解决办法:
删除.ssh/ known_hosts缓存文件。
重新登录时,会出现以下信息: