You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This was pretty weird as I'm able to run git clone [email protected]:[team]/[repo.git] without any issue or having to type any passphrase. I even removed the passphrase from the SSH key but no dice.
Drilling a bit into it, I found that this particular error means that JGit can't load an SSH key. Then I found this: gradle/gradle#8245
Gradle seems to have the same issue with source dependencies. More specifically, there's one comment that seems to fix the Auth fail error: gradle/gradle#8245 (comment)
It seems the current JGit version does not support the newer SSH key formats. We're in this weird situation where the newer OpenSSH versions, by default, generate a key that JGit doesn't support.
Hi! I was starting to integrate the plugin in our repository but hit a wall pretty fast regarding authentication.
Using
Was resulting in
This was pretty weird as I'm able to run
git clone [email protected]:[team]/[repo.git]
without any issue or having to type any passphrase. I even removed the passphrase from the SSH key but no dice.Drilling a bit into it, I found that this particular error means that JGit can't load an SSH key. Then I found this: gradle/gradle#8245
Gradle seems to have the same issue with source dependencies. More specifically, there's one comment that seems to fix the
Auth fail
error: gradle/gradle#8245 (comment)But then, another error appears:
It seems the current JGit version does not support the newer SSH key formats. We're in this weird situation where the newer OpenSSH versions, by default, generate a key that JGit doesn't support.
There's already a drop in replacement for JGit, which supports these new formats: https://github.com/mwiede/jsch
Example PR on Gradle repo, switching to this new version: gradle/gradle#20387
Is it possible to migrate to this new version on the plugin? Thank you!
The text was updated successfully, but these errors were encountered: