-
Notifications
You must be signed in to change notification settings - Fork 148
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
jsch.addIdentity() fails with IndexOutOfBounds when private key has CRLF line breaks #369
Comments
HI @AmairK00,
Thanks, |
Hi all, I too had my keys with CRLF line endings. After changing them to LF my tests passed. So I guess, I can also validate that the root cause should be that keys with CRLF aren't parsed correctly as @AmairK00 said. |
Mine starts with |
Ok, I have replicated this locally and will try to determine a solution. |
It starts with |
…ndings due to regression from previous fix for mwiede#362.
Hi @AmairK00 & @gmicherinas, Can you test with the JSch jar produced by Github CI from our latest changed located here and confirm if it fixes the issues you are seeing with files containing Thanks, |
Hi @AmairK00 & @gmicherinas, Actually we have made a new 0.2.11 release that hopefully fixes this regression: can you test and confirm? Thanks, |
The fix works for me. Thanks for the update. |
So, it resolves (at least) my problem.
|
Hi,
The below code does not work since the latest 0.2.10 release. Up to 0.2.9 this is working fine.
I don't have much idea on the library, so I cannot say if I have to use something different or if there is a configuration.
Please let me know.
logs:
The text was updated successfully, but these errors were encountered: