Chinaunix首页 | 论坛 | 博客
  • 博客访问: 825593
  • 博文数量: 101
  • 博客积分: 1311
  • 博客等级: 中尉
  • 技术积分: 1191
  • 用 户 组: 普通用户
  • 注册时间: 2009-07-25 12:15
文章分类

全部博文(101)

文章存档

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缓存文件。

重新登录时,会出现以下信息:

 

clip_image001

阅读(5301) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~