mina-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vikram Darsi <VDa...@advaoptical.com>
Subject Invalid Algorithm Parameter Exception SSH Handshake failed
Date Tue, 22 Nov 2016 13:27:36 GMT
Hi

We are facing below exception on SSH Client while SSH handshake is happening between SSH client
and SSH Server:


1.       SSH Server is a NETCONF based device (SSH-2.0-OpenSSH_6.4)

2.       SSH Client is based on Apache Mina SSHD 0.14.0  & Mina Core 2.0.9 running on
JAVA (1.8.0_45)  (SSH handshake failed)

3.       If SSH Client is based on Apache Mina SSHD 0.12.0  & Mina Core 2.0.7running on
JAVA (1.8.0_45) (SSH handshake success)

2016-11-22 18:38:59,089 | ERROR | NioProcessor-1   | ReversedAsyncSshHandler          | 286
- com.adva.ensemble.controller.callhome-config-dispatcher - 17.1.1.1 | Exception at iosession
-
java.security.InvalidAlgorithmParameterException: Prime size must be multiple of 64, and can
only range from 512 to 2048 (inclusive)
                at com.sun.crypto.provider.DHKeyPairGenerator.initialize(DHKeyPairGenerator.java:120)[sunjce_provider.jar:1.8.0_51]
                at java.security.KeyPairGenerator$Delegate.initialize(KeyPairGenerator.java:674)[:1.8.0_45]
                at java.security.KeyPairGenerator.initialize(KeyPairGenerator.java:411)[:1.8.0_45]
                at org.apache.sshd.common.kex.DH.getE(DH.java:65)[31:org.apache.sshd.core:0.14.0]
                at org.apache.sshd.client.kex.DHGEX.next(DHGEX.java:118)[31:org.apache.sshd.core:0.14.0]
                at org.apache.sshd.common.session.AbstractSession.doHandleMessage(AbstractSession.java:425)[31:org.apache.sshd.core:0.14.0]
                at org.apache.sshd.common.session.AbstractSession.handleMessage(AbstractSession.java:326)[31:org.apache.sshd.core:0.14.0]
                at org.apache.sshd.client.session.ClientSessionImpl.handleMessage(ClientSessionImpl.java:306)[31:org.apache.sshd.core:0.14.0]
                at org.apache.sshd.common.session.AbstractSession.decode(AbstractSession.java:780)[31:org.apache.sshd.core:0.14.0]
                at org.apache.sshd.common.session.AbstractSession.messageReceived(AbstractSession.java:308)[31:org.apache.sshd.core:0.14.0]


Please provide us pointers on how to resolve/debug the issue

Let me know if more inputs are required



Thanks
Vikram



Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message