Hi,
I tried with a fresh 4.0.4 on Debian (with Oracle Java8):
1. I start using bin/karaf
2. then, I connect using bin/client: it works
3. I tried with openssh (ssh -p 8101 karaf@localhost): it works
How do you start Karaf (using wrapper) ?
What's your JDK ? Do you have JCE ?
Thanks,
Regards
JB
On 01/19/2016 07:56 AM, eBroots wrote:
Hello,
I have downloaded karaf 4.0.4 and started it on a redhat machine and when I
try to open an ssh client with the client bin/script I get the following
error:
Logging in as karaf
482 [sshd-SshClient[3b29642c]-nio2-thread-1] WARN
org.apache.sshd.client.session.ClientSessionImpl - Exception caught
java.lang.IllegalStateException: Unable to negotiate key exchange for kex
algorithms (client:
ecdh-sha2-nistp256,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp384,ecdh-sha2-nistp521,ecdh-sha2-nistp521
/ server:
diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1)
at
org.apache.sshd.common.session.AbstractSession.negotiate(AbstractSession.java:1159)
at
org.apache.sshd.common.session.AbstractSession.doHandleMessage(AbstractSession.java:388)
at
org.apache.sshd.common.session.AbstractSession.handleMessage(AbstractSession.java:326)
at
org.apache.sshd.client.session.ClientSessionImpl.handleMessage(ClientSessionImpl.java:306)
at
org.apache.sshd.common.session.AbstractSession.decode(AbstractSession.java:780)
at
org.apache.sshd.common.session.AbstractSession.messageReceived(AbstractSession.java:308)
at
org.apache.sshd.common.AbstractSessionIoHandler.messageReceived(AbstractSessionIoHandler.java:54)
at
org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:184)
at
org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:170)
at
org.apache.sshd.common.io.nio2.Nio2CompletionHandler$1.run(Nio2CompletionHandler.java:32)
at java.security.AccessController.doPrivileged(Native Method)
at
org.apache.sshd.common.io.nio2.Nio2CompletionHandler.completed(Nio2CompletionHandler.java:30)
at sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:126)
at sun.nio.ch.Invoker.invokeDirect(Invoker.java:157)
at
sun.nio.ch.UnixAsynchronousSocketChannelImpl.implRead(UnixAsynchronousSocketChannelImpl.java:553)
at
sun.nio.ch.AsynchronousSocketChannelImpl.read(AsynchronousSocketChannelImpl.java:275)
at
sun.nio.ch.AsynchronousSocketChannelImpl.read(AsynchronousSocketChannelImpl.java:296)
at
java.nio.channels.AsynchronousSocketChannel.read(AsynchronousSocketChannel.java:407)
at
org.apache.sshd.common.io.nio2.Nio2Session.startReading(Nio2Session.java:170)
at
org.apache.sshd.common.io.nio2.Nio2Connector$1.onCompleted(Nio2Connector.java:60)
at
org.apache.sshd.common.io.nio2.Nio2Connector$1.onCompleted(Nio2Connector.java:53)
at
org.apache.sshd.common.io.nio2.Nio2CompletionHandler$1.run(Nio2CompletionHandler.java:32)
at java.security.AccessController.doPrivileged(Native Method)
at
org.apache.sshd.common.io.nio2.Nio2CompletionHandler.completed(Nio2CompletionHandler.java:30)
at sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:126)
at sun.nio.ch.Invoker$2.run(Invoker.java:218)
at
sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:112)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Authentication failed
I have tried with karaf 4.0.3 and I get the same message.
With karaf 3.0.3 it work fine.
Thanks.
--
View this message in context:
http://karaf.922171.n3.nabble.com/Error-when-opening-ssh-client-tp4044902.html
Sent from the Karaf - User mailing list archive at Nabble.com.
--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com