Hi Alex,

you are right, if the two instances and clients run with the same user.

The workaround is to remove the $HOME/.sshkaraf folder before each
ssh:ssh. ssh:ssh will recreate it with the target instance key.

I can add an option to ssh:ssh and client to "ignore" server key check.

Regards
JB

On 28/03/2019 21:00, Alex Soto wrote:
> For my integration tests, I launch two separate Karaf instances.
> When I try to connect from one instance to the other using the
> /ssh:ssh/  command, I always get the error:
> 
> org.apache.sshd.common.SshException: Server key did not validate
> at
> org.apache.sshd.client.session.AbstractClientSession.checkKeys(AbstractClientSession.java:495)
> 
> I suppose that, because both instances are running in the same host,
> there may be a conflict with the /~/.sshkaraf /directory, but I don’t
> know how to solve this issue.
> The server key of now instance is overriding/conflicting the server key
> of the other instance?
> 
> (I am using Karaf   4.2.0)
> Any help will be greatly appreciated.
> 
> 
> Best regards,
> Alex soto
> 
> 
> 
> 

-- 
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to