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

com.jcraft.jsch.JschException: invalid privatekey: [B@428571 #10

Open
SJrX opened this issue Sep 8, 2019 · 3 comments
Open

com.jcraft.jsch.JschException: invalid privatekey: [B@428571 #10

SJrX opened this issue Sep 8, 2019 · 3 comments

Comments

@SJrX
Copy link

SJrX commented Sep 8, 2019

Caused by: com.jcraft.jsch.JSchException: invalid privatekey: [B@77799695
        at com.jcraft.jsch.KeyPair.load(KeyPair.java:664)
        at com.jcraft.jsch.KeyPair.load(KeyPair.java:561)
        at com.jcraft.jsch.IdentityFile.newInstance(IdentityFile.java:40)
        at com.jcraft.jsch.JSch.addIdentity(JSch.java:406)
        at com.jcraft.jsch.JSch.addIdentity(JSch.java:366)
        at com.jcraft.jsch.JSch$addIdentity.call(Unknown Source)
        at com.palominolabs.gradle.task.git.clone.SshAgentSshSessionFactory.getSession(SshAgentSshSessionFactory.groovy:55)
        at org.eclipse.jgit.transport.SshTransport.getSession(SshTransport.java:121)
        at org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.<init>(TransportGitSsh.java:248)
        at org.eclipse.jgit.transport.TransportGitSsh.openFetch(TransportGitSsh.java:147)
        at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:136)
        at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:122)
        at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1111)
        at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:130)
        at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:76)
        at java_util_concurrent_Callable$call.call(Unknown Source)
        at com.palominolabs.gradle.task.git.clone.GitCloneTask.setUpRepo(GitCloneTask.groovy:102)
        at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:103)
        ... 86 more

Maybe Jsch should be updated?

@SJrX
Copy link
Author

SJrX commented Sep 8, 2019

@marshallpierce
Copy link
Member

Thanks for the report; I'll look into it.

@marshallpierce
Copy link
Member

It seems like in the case where the text header is different we could hypothetically fix that on the fly, but for key types jsch doesn't support I'm not sure what we can do.

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