com.jcraft.jsch.JSchException:SSH_MSG_DISCONNECT:11在1024和1024之间没有合适的素数可用.恩 [英] com.jcraft.jsch.JSchException: SSH_MSG_DISCONNECT: 11 No appropriate prime between 1024 and 1024 is available. en
问题描述
我正在寻找连接到支持以下密钥交换方法的服务器的信息 ecdh-sha2-nistp521 ecdh-sha2-nistp384 ecdh-sha2-nistp256 diffie-hellman-group-exchange-sha256 diffie-hellman-group14 diffie-hellman-group
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
我正在使用jsch jsch-0.1.53并使用RSA私钥/公钥连接到服务器.在直到更改服务器之前,现在返回此奇怪的错误
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在1024和1024之间没有合适的素数.恩 在com.jcraft.jsch.Session.read(Session.java:899) 在com.jcraft.jsch.Session.connect(Session.java:294) 在com.jcraft.jsch.Session.connect(Session.java:154)
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)
我正在使用Java 1.6.0_16运行和编译项目.
I am running and compiling the project using java 1.6.0_16.
请问如何解决此问题?
推荐答案
我在使用jsch 0.1.53和Java 1.7.0_05时遇到了相同的问题 我更新到Java 1.8_101时就解决了
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
这篇关于com.jcraft.jsch.JSchException:SSH_MSG_DISCONNECT:11在1024和1024之间没有合适的素数可用.恩的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!