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

Allow ssh-agent keys that are unsupported #68

Merged
merged 3 commits into from
Sep 7, 2021

Conversation

norrisjeremy
Copy link
Contributor

@norrisjeremy norrisjeremy commented Sep 6, 2021

  • Allow usage of keys from ssh-agent that would otherwise not work because of missing support for the signature algorithm.
  • Add integration tests for ssh-agent support.
  • Added support for the following algorithms with older Java releases by using Bouncy Castle:

FYI, allowing usage of ssh-agent keys allows using ssh-ed25519 from Java versions < 15, since the signature generation process is delegated to the ssh-agent process and does not rely upon Ed25519 support within Java itself.

Also, the ssh-agent integration tests can only be run from Linux, since it relies on sharing a bind mount between the host and container running the ssh-agent process, and it doesn't seem possible to share the ssh-agent's unix domain socket through this bind mount on macOS (and I assume Windows as well).

FYI, the Bouncy Castle addition is completely optional: JSch will still function without it being present in the classpath, albeit without supporting the above mentioned algorithms on older Java releases. This should help address some issues that have been raised by users asking why we don't support these algorithms on older Java releases: all the user has to do is add the bcprov-jdk15on jar-file to their classpath to gain support.

@norrisjeremy norrisjeremy force-pushed the 20210906 branch 2 times, most recently from a45f0ac to 4341d30 Compare September 7, 2021 02:53
…Bouncy Castle:

- ssh-ed25519
- ssh-ed448
- curve25519-sha256
- [email protected]
- curve448-sha512
- [email protected]
@mwiede
Copy link
Owner

mwiede commented Sep 7, 2021

Thats awesome! I also had the bouncycastle fallback on my list, but now you have already done it. Thank you

@mwiede mwiede merged commit 9f40b30 into mwiede:master Sep 7, 2021
@norrisjeremy norrisjeremy deleted the 20210906 branch September 7, 2021 12:43
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

Successfully merging this pull request may close these issues.

3 participants