com.jcraft.jsch.JSchException: SSH_MSG_DISCONNECT: 11 No appropriate prime between 1024 and 1024 is available. en

北战南征 提交于 2019-12-24 14:43:23

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!