-
Notifications
You must be signed in to change notification settings - Fork 89
UnknownHostKey JSch #209
Comments
I would expect that JGit doesn't know how to handle this is a remote URL: |
Hi, sorry for the typo and thanks for your reply. The URI is actually something like: My domain uses ssh verification. It works fine when I use the same uri for git cloning from commandline and other apps. The new exception that I am getting now from the plugin is:
And I don't know where it is picking up that key fingerprint from. Do you know how i can fix this? Thanks for the help |
Here is the exception from the --stacktrace option
|
So you're saying that's not the fingerprint of your actual host your remote URI points to? If it is the right one, it just needs to be added to the known_hosts. If not, I'm a little unsure. A workaround is to disable strict checking of hosts:
http://ajoberstar.org/grgit/docs/groovydoc/index.html?org/ajoberstar/grgit/auth/AuthConfig.html |
Yes this fingerprint is NOT the one for my remote URI. SO should i add this line in my task definition? : |
It seems concerning that you're seeing a different host key, but if you trust that its still connecting to the right thing, disabling is the workaround for now. That would need to be added as a system property. So either:
or in
|
Hi, thanks for your reply, but i am getting the same error even with StrictHostKeyChecking=no |
Unfortuantely, not sure what to try next. This is probably related to the issues that have been reported in the past. There's some additional logging I could add, but I think it just needs more research into how JGit/JSch handle these host keys. In the near term I probably won't have a chance to do that, though certainly open to any feedback from someone who has the time. |
This is going to be more of a grgit problem, so I've opened ajoberstar/grgit#123. |
This should be resolved with 1.7.0, which will be out tonight. |
When running the gradle task i get this expcetion
What went wrong:
Execution failed for task ':cloneSomeRepo'.
my gradle task looks like
task cloneSomeRepo(type: com.palominolabs.gradle.task.git.clone.GitCloneTask) {
dir = file("../libToolkit_temp")
uri = 'https://@/.git'
treeish = 'master' // branch
}
The text was updated successfully, but these errors were encountered: