Java: InvalidAlgorithmParameterException Prime size must be multiple of 64

前端 未结 9 1980
北海茫月
北海茫月 2020-12-10 16:01

I implemented a Java program that will connect and execute a command in a remote server using JSCH. The problem is that whenever I tried to connect to the server, I got the

9条回答
  •  悲哀的现实
    2020-12-10 16:35

    I tried using a 2048 bit key that I generate in a server, still I am receiving those error. The solution that I found is to use a different SSH library and the one that works is Ganymed SSH-2, instead of JSch. Thank you for all the suggestions and comments.

    Edited: In addition, this library is also light weight ~1MB.

提交回复
热议问题