Bug 4556

Summary: Fix issue for changed RSA key
Product: [Yocto Project Subprojects] Eclipse Plugin Reporter: Jessica <jessica.zhang>
Component: eclipse-pluginAssignee: Ioana Grigoropol <ioanax.grigoropol>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: Medium+ CC: ioanax.grigoropol, yp.ep.watcher, yp.watcher
Version: 1.5   
Target Milestone: 1.5 M2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---
Attachments:
Description Flags
no entry for host
none
different entry for host none

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