Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Size of ssh-rsa exception #607

Open
Beban9999 opened this issue Jul 30, 2024 · 6 comments
Open

Size of ssh-rsa exception #607

Beban9999 opened this issue Jul 30, 2024 · 6 comments

Comments

@Beban9999
Copy link

com.jcraft.jsch.JSchException: Session.connect: java.security.InvalidAlgorithmParameterException: Prime size must be multiple of 64, and can only range from 512 to 2048 (inclusive).

Is there a way to change acceptable key size?

Thanks in advance

@norrisjeremy
Copy link
Contributor

Hi @Beban9999,

That is a limitation of the JDK version you are using, not JSch.

Thanks,
Jeremy

@Beban9999
Copy link
Author

Hi @norrisjeremy
Thanks for the quick replay. I did not have this issue in the old JSch version.

Thanks

@Beban9999
Copy link
Author

I built the package using Java 1.9

@norrisjeremy
Copy link
Contributor

Hi @Beban9999,

It's not a JSch issue. Go search Google for the phrase Prime size must be multiple of 64, and can only range from 512 to 2048.

Thanks,
Jeremy

@Beban9999
Copy link
Author

Is this the problem of the JDK that I use to build the library or the JDK that I use in the application that is running it?

@norrisjeremy
Copy link
Contributor

Hi @Beban9999,

It is an issue with the version of the JDK you are using to run you application.

Thanks,
Jeremy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants