-
Notifications
You must be signed in to change notification settings - Fork 143
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
[Feature Request] JVM Arguments Enhancement #598
Comments
have you considered using src/main/java/com/jcraft/jsch/OpenSSHConfig.java ? Examples see https://github.com/mwiede/jsch/wiki/Jsch-Configuration#1-use-openssh-sshconfig-and-sshknown_hosts-files |
Hi @pega-vanhd1, You can specify JVM arguments for system properties (in the form of Thanks, |
Hi folks! @mwiede Unfortunately in our situation, we are limited to adjusting environments via JVM properties. We can't alter the running code in the environments that need these changes. Essentially, jsch is included as a library within an application being run in many cloud environments, and we don't always have the ability to alter the application. In some cases we do, and for those situations we can provide additive algorithms as shown here. But we don't have the ability to add algorithms in that same additive way via JVM properties. @norrisjeremy This is what we are currently doing. The problem is that using those system properties requires us to pass in a full list of all supported algorithms. This works, but now we won't automatically have newer algorithms supported if we updated the version of jsch - we would need to adjust the system properties to include the newer algorithms as well. It's also a much longer JVM argument when including all supported algorithms plus the extra 1-2 we need. Our hope is that we can add an alternative JVM argument that includes a list of algorithms to accept in addition to the default from jsch, rather than a full list of algorithms. |
It sounds like you could simply solve this problem yourself by adding your own JVM arguments to your own application(s) to adjust the JSch config. Thanks, |
We are looking to override the algorithms that are available to use with the JVM arguments (host key, public key, kex, cipher, mac), but the downside of this is that we need to hardcode a full list of algorithms that we want to support. It would be nice if there were separate JVM arguments that we could use to provide a supplementary list of algorithms to be used in addition to the default algorithms. This would allow our code to be much more maintainable and future-proof.
The text was updated successfully, but these errors were encountered: