问题
I am looking to connect to a server where they support the following key exchange method ecdh-sha2-nistp521 ecdh-sha2-nistp384 ecdh-sha2-nistp256 diffie-hellman-group-exchange-sha256 diffie-hellman-group14 diffie-hellman-group
I am using jsch jsch-0.1.53 and using RSA private/public key to connect to the server. This works fine before not until the server was changed and now returning this strange error
com.jcraft.jsch.JSchException: SSH_MSG_DISCONNECT: 11 No appropriate prime between 1024 and 1024 is available. en at com.jcraft.jsch.Session.read(Session.java:899) at com.jcraft.jsch.Session.connect(Session.java:294) at com.jcraft.jsch.Session.connect(Session.java:154)
I am running and compiling the project using java 1.6.0_16.
Any idea how to resolve this issue please ?
回答1:
I had the same problem with jsch 0.1.53 and Java 1.7.0_05 It got solved when I update to Java 1.8_101
来源:https://stackoverflow.com/questions/34351298/com-jcraft-jsch-jschexception-ssh-msg-disconnect-11-no-appropriate-prime-betwe