Bug 4556 - Fix issue for changed RSA key
Summary: Fix issue for changed RSA key
Status: RESOLVED WORKSFORME
Alias: None
Product: Eclipse Plugin
Classification: Yocto Project Subprojects
Component: eclipse-plugin (show other bugs)
Version: 1.5
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 1.5 M2
Assignee: Ioana Grigoropol
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2013-05-24 19:46 UTC by Jessica
Modified: 2013-05-27 15:17 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments
no entry for host (67.67 KB, image/png)
2013-05-27 15:17 UTC, Ioana Grigoropol
no flags Details
different entry for host (103.86 KB, image/png)
2013-05-27 15:17 UTC, Ioana Grigoropol
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jessica 2013-05-24 19:46:12 UTC
While testing remote tools changes, I've run into the following situation:

The connection progress just hang in eclipse then I got the error msg the connection failed with no further detailed information.  When I switch to command line to do ssh root@192.168.7.2, I got the following message.  We have fixed the problem for adding entry to known hosts, we need to support this scenario as well.

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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 a host key has just been changed.
The fingerprint for the ECDSA key sent by the remote host is
f1:56:c5:47:15:cc:61:97:1f:8c:3c:a2:dd:98:05:90.
Please contact your system administrator.
Add correct host key in /home/jzhang/.ssh/known_hosts to get rid of this message.
Offending RSA key in /home/jzhang/.ssh/known_hosts:18
  remove with: ssh-keygen -f "/home/jzhang/.ssh/known_hosts" -R 192.168.7.2
ECDSA host key for 192.168.7.2 has changed and you have requested strict checking.
Host key verification failed.
Comment 1 Ioana Grigoropol 2013-05-27 14:32:13 UTC
Hi Jessica,

The fix that treated know hosts issue, also includs a fix for this case. 
I cannot reproduce this issue.
Comment 2 Ioana Grigoropol 2013-05-27 15:17:05 UTC
Created attachment 1226 [details]
no entry for host
Comment 3 Ioana Grigoropol 2013-05-27 15:17:36 UTC
Created attachment 1227 [details]
different entry for host