You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Benson Margulies <be...@basistech.com> on 2016/03/29 14:08:09 UTC

problem with SSH when launched in Tanuki

When I 'wrap' my karaf container, I lose the ability to ssh to it at 8101:

In java, I get a backtrace like the following. At the shell, I see

➜ package git:(master) ssh -p 8101 karaf@localhost
Unable to negotiate with ::1: no matching cipher found. Their offer:

It works fine when I launch the container from the 'karaf' command.


---

jvm 1    | java.lang.IllegalStateException: Unable to negotiate key
exchange for encryption algorithms (client to server) (client:
chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
/ server: )
jvm 1    | at org.apache.sshd.common.session.AbstractSession.negotiate(AbstractSession.java:1159)[5:org.apache.sshd.core:0.14.0]
jvm 1    | at org.apache.sshd.common.session.AbstractSession.doHandleMessage(AbstractSession.java:388)[5:org.apache.sshd.core:0.14.0]
jvm 1    | at org.apache.sshd.common.session.AbstractSession.handleMessage(AbstractSession.java:326)[5:org.apache.sshd.core:0.14.0]
jvm 1    | at org.apache.sshd.common.session.AbstractSession.decode(AbstractSession.java:780)[5:org.apache.sshd.core:0.14.0]
jvm 1    | at org.apache.sshd.common.session.AbstractSession.messageReceived(AbstractSession.java:308)[5:org.apache.sshd.core:0.14.0]
jvm 1    | at org.apache.sshd.common.AbstractSessionIoHandler.messageReceived(AbstractSessionIoHandler.java:54)

Re: problem with SSH when launched in Tanuki

Posted by Benson Margulies <be...@basistech.com>.
I found my mistake in the endorsed dir config in wrapper.conf.


On Tue, Mar 29, 2016 at 5:02 PM, Benson Margulies <be...@basistech.com>
wrote:

> What does it look like in there? I bet you I do not.
>
>
> On Tue, Mar 29, 2016 at 4:36 PM, Jean-Baptiste Onofré <jb...@nanthrax.net>
> wrote:
>
>> Check if you have JCE in your wrapper.conf.
>>
>> Regards
>> JB
>>
>>
>> On 03/29/2016 02:08 PM, Benson Margulies wrote:
>>
>>> When I 'wrap' my karaf container, I lose the ability to ssh to it at
>>> 8101:
>>>
>>> In java, I get a backtrace like the following. At the shell, I see
>>>
>>> ➜ package git:(master) ssh -p 8101 karaf@localhost
>>> Unable to negotiate with ::1: no matching cipher found. Their offer:
>>>
>>> It works fine when I launch the container from the 'karaf' command.
>>>
>>>
>>> ---
>>>
>>> jvm 1    | java.lang.IllegalStateException: Unable to negotiate key
>>> exchange for encryption algorithms (client to server) (client:
>>> chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,
>>> aes128-gcm@openssh.com,aes256-gcm@openssh.com
>>> ,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,
>>> rijndael-cbc@lysator.liu.se
>>> / server: )
>>> jvm 1    | at
>>> org.apache.sshd.common.session.AbstractSession.negotiate(AbstractSession.java:1159)[5:org.apache.sshd.core:0.14.0]
>>> jvm 1    | at
>>> org.apache.sshd.common.session.AbstractSession.doHandleMessage(AbstractSession.java:388)[5:org.apache.sshd.core:0.14.0]
>>> jvm 1    | at
>>> org.apache.sshd.common.session.AbstractSession.handleMessage(AbstractSession.java:326)[5:org.apache.sshd.core:0.14.0]
>>> jvm 1    | at
>>> org.apache.sshd.common.session.AbstractSession.decode(AbstractSession.java:780)[5:org.apache.sshd.core:0.14.0]
>>> jvm 1    | at
>>> org.apache.sshd.common.session.AbstractSession.messageReceived(AbstractSession.java:308)[5:org.apache.sshd.core:0.14.0]
>>> jvm 1    | at
>>> org.apache.sshd.common.AbstractSessionIoHandler.messageReceived(AbstractSessionIoHandler.java:54)
>>>
>>>
>> --
>> Jean-Baptiste Onofré
>> jbonofre@apache.org
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com
>>
>
>

Re: problem with SSH when launched in Tanuki

Posted by Benson Margulies <be...@basistech.com>.
What does it look like in there? I bet you I do not.


On Tue, Mar 29, 2016 at 4:36 PM, Jean-Baptiste Onofré <jb...@nanthrax.net>
wrote:

> Check if you have JCE in your wrapper.conf.
>
> Regards
> JB
>
>
> On 03/29/2016 02:08 PM, Benson Margulies wrote:
>
>> When I 'wrap' my karaf container, I lose the ability to ssh to it at 8101:
>>
>> In java, I get a backtrace like the following. At the shell, I see
>>
>> ➜ package git:(master) ssh -p 8101 karaf@localhost
>> Unable to negotiate with ::1: no matching cipher found. Their offer:
>>
>> It works fine when I launch the container from the 'karaf' command.
>>
>>
>> ---
>>
>> jvm 1    | java.lang.IllegalStateException: Unable to negotiate key
>> exchange for encryption algorithms (client to server) (client:
>> chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,
>> aes128-gcm@openssh.com,aes256-gcm@openssh.com
>> ,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,
>> rijndael-cbc@lysator.liu.se
>> / server: )
>> jvm 1    | at
>> org.apache.sshd.common.session.AbstractSession.negotiate(AbstractSession.java:1159)[5:org.apache.sshd.core:0.14.0]
>> jvm 1    | at
>> org.apache.sshd.common.session.AbstractSession.doHandleMessage(AbstractSession.java:388)[5:org.apache.sshd.core:0.14.0]
>> jvm 1    | at
>> org.apache.sshd.common.session.AbstractSession.handleMessage(AbstractSession.java:326)[5:org.apache.sshd.core:0.14.0]
>> jvm 1    | at
>> org.apache.sshd.common.session.AbstractSession.decode(AbstractSession.java:780)[5:org.apache.sshd.core:0.14.0]
>> jvm 1    | at
>> org.apache.sshd.common.session.AbstractSession.messageReceived(AbstractSession.java:308)[5:org.apache.sshd.core:0.14.0]
>> jvm 1    | at
>> org.apache.sshd.common.AbstractSessionIoHandler.messageReceived(AbstractSessionIoHandler.java:54)
>>
>>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

Re: problem with SSH when launched in Tanuki

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Check if you have JCE in your wrapper.conf.

Regards
JB

On 03/29/2016 02:08 PM, Benson Margulies wrote:
> When I 'wrap' my karaf container, I lose the ability to ssh to it at 8101:
>
> In java, I get a backtrace like the following. At the shell, I see
>
> ➜ package git:(master) ssh -p 8101 karaf@localhost
> Unable to negotiate with ::1: no matching cipher found. Their offer:
>
> It works fine when I launch the container from the 'karaf' command.
>
>
> ---
>
> jvm 1    | java.lang.IllegalStateException: Unable to negotiate key
> exchange for encryption algorithms (client to server) (client:
> chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
> / server: )
> jvm 1    | at org.apache.sshd.common.session.AbstractSession.negotiate(AbstractSession.java:1159)[5:org.apache.sshd.core:0.14.0]
> jvm 1    | at org.apache.sshd.common.session.AbstractSession.doHandleMessage(AbstractSession.java:388)[5:org.apache.sshd.core:0.14.0]
> jvm 1    | at org.apache.sshd.common.session.AbstractSession.handleMessage(AbstractSession.java:326)[5:org.apache.sshd.core:0.14.0]
> jvm 1    | at org.apache.sshd.common.session.AbstractSession.decode(AbstractSession.java:780)[5:org.apache.sshd.core:0.14.0]
> jvm 1    | at org.apache.sshd.common.session.AbstractSession.messageReceived(AbstractSession.java:308)[5:org.apache.sshd.core:0.14.0]
> jvm 1    | at org.apache.sshd.common.AbstractSessionIoHandler.messageReceived(AbstractSessionIoHandler.java:54)
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com