Hi Ryan, did you remove the $HOME/.sshkaraf file ?
It's probably because you restart a Karaf from scratch (for the key changed).
Regards JB On 01/22/2014 03:53 PM, Ryan Moquin wrote:
Hello, I had ran into a problem before where in an integration test I would create a child karaf instance, then after it started, I would try to connect to it via instance:connect from the root console and the connection fails due to certificate issues. If I delete the .karafssh directory, then the tests will work a few times, but then the error comes back. This is what I get: 16:27:17,559 | WARN | org.apache.sshd.client.session.ClientSessionImpl | Exception caught org.apache.sshd.common.SshException: Server key did not validate at org.apache.sshd.client.session.ClientSessionImpl.checkHost(ClientSessionImpl.java:543)[14:org.apache.sshd.core:0.9.0] at org.apache.sshd.client.session.ClientSessionImpl.doHandleMessage(ClientSessionImpl.java:339)[14:org.apache.sshd.core:0.9.0] at org.apache.sshd.client.session.ClientSessionImpl.handleMessage(ClientSessionImpl.java:293)[14:org.apache.sshd.core:0.9.0] at org.apache.sshd.common.session.AbstractSession.decode(AbstractSession.java:587)[14:org.apache.sshd.core:0.9.0] at org.apache.sshd.common.session.AbstractSession.messageReceived(AbstractSession.java:253)[14:org.apache.sshd.core:0.9.0] at org.apache.sshd.common.AbstractSessionIoHandler.messageReceived(AbstractSessionIoHandler.java:54)[14:org.apache.sshd.core:0.9.0] at org.apache.sshd.common.io.nio2.Nio2Session$2.completed(Nio2Session.java:231)[14:org.apache.sshd.core:0.9.0] at org.apache.sshd.common.io.nio2.Nio2Session$2.completed(Nio2Session.java:217)[14:org.apache.sshd.core:0.9.0] at sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:126)[:1.7.0_45] at sun.nio.ch.Invoker$2.run(Invoker.java:206)[:1.7.0_45] at sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:112)[:1.7.0_45] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_45] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_45] at java.lang.Thread.run(Thread.java:744)[:1.7.0_45] I tried to turn off the ssh authentication, but I can only override the host key property for the root instance and not the child. I don't understand how it would work the first couple times then not work against until I delete that directory..... Any ideas would be appreciated! I've been banging my head on this for the past several days. Thanks!
-- Jean-Baptiste Onofré jbono...@apache.org http://blog.nanthrax.net Talend - http://www.talend.com