Do you start Karaf with bin/karaf ?

I just tried with a fresh Karaf 4.0.4:

bin/karaf

and on another terminal:

jbonofre@latitude:~$ ssh -p 8101 karaf@localhost
Password authentication
Password:
        __ __                  ____
       / //_/____ __________ _/ __/
      / ,<  / __ `/ ___/ __ `/ /_
     / /| |/ /_/ / /  / /_/ / __/
    /_/ |_|\__,_/_/   \__,_/_/

  Apache Karaf (4.0.4)

Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit 'system:shutdown' to shutdown Karaf.
Hit '<ctrl-d>' or type 'logout' to disconnect shell from current session.

karaf@root()>


Regards
JB

On 03/04/2016 05:54 PM, Jason Reilly wrote:
$ java -version
java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)


How do I check which JCE I am using?


On 03/04/2016 11:52 AM, Jean-Baptiste Onofré wrote:
Hi Jason,

which JCE/JDK are you using (provider and version) ?

Thanks,
Regards
JB

On 03/04/2016 05:48 PM, Jason Reilly wrote:
Hi all,

I am seeing an exception in the log when I try the following:

$ ssh -p 8101 -l karaf localhost

Connection reset by 127.0.0.1


 From the karaf.log file:

2016-03-04 11:12:27,501 | WARN  | f]-nio2-thread-1 |
ServerSession                    | 5 - org.apache.sshd.core - 0.14.0 |
Exception caught

java.security.InvalidAlgorithmParameterException: parameter object not a
ECParameterSpec

     at
org.bouncycastle.jce.provider.JDKKeyPairGenerator$EC.initialize(Unknown
Source)

     at
java.security.KeyPairGenerator.initialize(KeyPairGenerator.java:411)[:1.8.0_45]



     at
org.apache.sshd.common.kex.ECDH.getE(ECDH.java:58)[5:org.apache.sshd.core:0.14.0]



     at
org.apache.sshd.server.kex.AbstractDHGServer.init(AbstractDHGServer.java:71)[5:org.apache.sshd.core:0.14.0]



     at
org.apache.sshd.common.session.AbstractSession.doHandleMessage(AbstractSession.java:390)[5:org.apache.sshd.core:0.14.0]



     at
org.apache.sshd.common.session.AbstractSession.handleMessage(AbstractSession.java:326)[5:org.apache.sshd.core:0.14.0]



     at
org.apache.sshd.common.session.AbstractSession.decode(AbstractSession.java:780)[5:org.apache.sshd.core:0.14.0]



     at
org.apache.sshd.common.session.AbstractSession.messageReceived(AbstractSession.java:308)[5:org.apache.sshd.core:0.14.0]


....


This is from a custom distribution of Karaf....when I try the same with
a clean Karaf4 instance, I do not encounter this issue & am able to
login successfully.  I figured it must be one of the etc/*.cfg files I
messed up that's included in the custom distribution.  However, when I
remove all the custom distribution's etc files, I still encounter the
login problem.  Is there something else I can try?

Thanks
Jason



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

Reply via email to