Failure during build: Host key verification failed after Initializing Git repository
See original GitHub issueHi there,
First of all, I’d like to thank for all the help… Also, the UI remake for Jenkins is freaking awesome… It is the best I’ve ever seen around…
Anyway, I’m trying to build using docker-compose as reported before… I still cannot get past from the git fetch due to a “Host key verification failed.”…
Started by user anonymous
Started by: null
Building remotely on 51868e9787c0 (swarm) in workspace /var/jenkins_home/worker/workspace/mdesales/isp
[isp] $ /bin/bash -le /tmp/hudson6820944739083537435.sh
$ chmod -R u+w . ; find . ! -path "./deploykey_rsa.pub" ! -path "./deploykey_rsa" -delete
$ git init
Initialized empty Git repository in /var/jenkins_home/worker/workspace/mdesales/isp/.git/
$ git remote add origin git@github.intuit.com:mdesales/isp.git
$ git fetch origin master
Host key verification failed.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Build step 'Execute shell' marked build as failure
setting commit status on Github for http://github.intuit.com/api/v3/repos/mdesales/isp/commit/49d730adb048e1697cdea994791144e0eb670ca0
Started calculate disk usage of build
Finished Calculation of disk usage of build in 0 seconds
Started calculate disk usage of workspace
Finished Calculation of disk usage of workspace in 0 seconds
Finished: FAILURE
According to the http://stackoverflow.com/questions/15174194/jenkins-host-key-verification-failed/15196114#15196114, this is caused due to the lack of the ~/.ssh/known_hosts entry for the github server (on my case below github.intuit.com
…
What should I do in this case? I thought about copying the entry from another host to the server… (My problem is that I’m running Jenkins from a Docker Container)…
Thanks for any help!
Issue Analytics
- State:
- Created 8 years ago
- Comments:10 (4 by maintainers)
Top Results From Across the Web
Git error: "Host Key Verification Failed" when connecting to ...
As I answered previously in Cloning git repo causes error - Host key verification failed. fatal: The remote end hung up unexpectedly, add...
Read more >How to fix the error “host key verification failed” - The Geek Diary
Method 1 – removing old key manually · 1. On the source server, the old keys are stored in the file ~/. ·...
Read more >Host key verification failed - Accounts and Integrations
when it's trying to fetch i'm getting this error Host key verification failed . + mkdir -p raspberrypi + cd raspberrypi + repo...
Read more >Gitlab post-receive hook Host key verification failed
When an SSH connection is initialized, the server authenticates itself to the client. The client then checks if the key is already in...
Read more >Host Key verification failed - Red Hat Customer Portal
It seems maybe you either have a conflicting key in your known_hosts file, or you need to somehow add a relevant entry in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I tried many times to get this to work…
Attached to the worker container and created a key
Added my github enterprise to the known hosts
Created an ssh key
I added the public id to my Github profile
At this point, this solved the problem of cloning. Only through the container… However, from Jenkins it still fails…
Successfully cloned the repository that’s failing
Fails in the UI
It fails with the error below…
I’m suspecting something is wrong… The compose binary that I transferred is not executing properly…
Question
Should the Slave image
eeacms/jenkins:centos-slave
or the others also include the binary ofdocker-compose
? What’s the intended way of using it?