You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org> on 2013/11/18 15:57:21 UTC

[jira] [Commented] (KARAF-2574) Improve message when .sshkaraf/known_hosts key changed

    [ https://issues.apache.org/jira/browse/KARAF-2574?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13825372#comment-13825372 ] 

Jean-Baptiste Onofré commented on KARAF-2574:
---------------------------------------------

I improved the displayed message when the .sshkaraf/known_hosts contains a changed key:

karaf@root()> ssh:ssh -p 8101 localhost
Connecting to host localhost on port 8101
Invalid key stored for host localhost/127.0.0.1:8101. Terminating session.
 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 
 @    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.
Please contact your system administrator.
Add correct host key in /home/jbonofre/.sshkaraf/known_hosts to get rid of this message.
Offending key in /home/jbonofre/.sshkaraf/known_hosts
RSA host key has changed and you have requested strict checking.
Host key verification failed.


> Improve message when .sshkaraf/known_hosts key changed
> ------------------------------------------------------
>
>                 Key: KARAF-2574
>                 URL: https://issues.apache.org/jira/browse/KARAF-2574
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-instance
>    Affects Versions: 3.0.0
>            Reporter: Jean-Baptiste Onofré
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 2.4.0, 3.0.0, 2.3.4
>
>
> It's not possible to connect to an instance using the instance:connect instance:
> karaf@root()> instance:connect root
> Connecting to host localhost on port 8101
> Connected
> Server key for host localhost/127.0.0.1:8101 does not match the stored key !! Terminating session.
> Error executing command: Session is closed
> and it's not possible to switch to username/password authentication (instead of the key authentication).



--
This message was sent by Atlassian JIRA
(v6.1#6144)