Jenkins Project Configuration: stderr: Host key verification failed

1,309 views
Skip to first unread message

Rammacher Frank

unread,
Dec 22, 2015, 5:49:40 AM12/22/15
to Jenkins Users
Hello,

i try to configurate a Jenking Project for a test, but it fails (for this moment...) on Sorce-Code.Management:

My System:
- Windows 8.1
- Jenkins 1.643
- FreeSSHD
- git version 2.6.3.windows.1

Ok, what i have is a project named jenkins_test, it is located on:
C:\Program Files (x86)\Jenkins\jobs\jenkins_test\jenkins_test

The GIT init is already done
C:\Program Files (x86)\Jenkins\jobs\jenkins_test\jenkins_test\.git

Now, the Git-Repository to clone is on:
C:\xampp\htdocs\jenkins_test\.git

Gestartet durch Benutzer anonymous
Baue in Arbeitsbereich C:\Program Files (x86)\Jenkins\jobs\jenkins_test\workspace
Cloning the remote Git repository
Cloning repository rammi@localhost:jenkins_test
 
> C:\Users\rammi\AppData\Local\Programs\Git\cmd\git.exe init C:\Program Files (x86)\Jenkins\jobs\jenkins_test\workspace # timeout=10
Fetching upstream changes from rammi@localhost:jenkins_test
 
> C:\Users\rammi\AppData\Local\Programs\Git\cmd\git.exe --version # timeout=10
 
> C:\Users\rammi\AppData\Local\Programs\Git\cmd\git.exe -c core.askpass=true fetch --tags --progress rammi@localhost:jenkins_test +refs/heads/*:refs/remotes/origin/*
ERROR: Error cloning remote repo 'origin'
hudson.plugins.git.GitException: Command "C:\Users\rammi\AppData\Local\Programs\Git\cmd\git.exe -c core.askpass=true fetch --tags --progress rammi@localhost:jenkins_test +refs/heads/*:refs/remotes/origin/*" returned status code 128:
stdout:
stderr: Host key verification failed.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

        at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1640)
        at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1388)
        at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:62)
        at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:313)
        at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:505)
        at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1003)
        at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1043)
        at hudson.scm.SCM.checkout(SCM.java:485)
        at hudson.model.AbstractProject.checkout(AbstractProject.java:1276)
        at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:607)
        at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
        at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
        at hudson.model.Run.execute(Run.java:1738)
        at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
        at hudson.model.ResourceController.execute(ResourceController.java:98)
        at hudson.model.Executor.run(Executor.java:410)
ERROR: null
Finished: FAILURE

If i execute the command from the console, the error print this:
rammi@rammi22 MINGW64 /c/Program Files (x86)/Jenkins/jobs/jenkins_test
$ "C:\Users\rammi\AppData\Local\Programs\Git\cmd\git.exe" -c core.askpass=true ls-remote -h rammi@localhost:jenkins_test HEAD
rammi@localhost's password:
fatal: protocol error: bad line length character: Unab


Following this Thread "Jenkins Host Key Failed", returned this error:
rammi@rammi22 MINGW64 /c/Program Files (x86)/Jenkins/jobs/jenkins_test
$ git ls-remote -h ssh:C:\xampp\htdocs\jenkins_test
ssh: Could not resolve hostname ssh: Name or service not known
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

I haven´t found nothing to solve this error, just a lot of recomandation without a final solution, anyone can help?

Thank You

Reply all
Reply to author
Forward
0 new messages