Error:
Fetching upstream changes from git@github.com:....../.........git
ERROR: Problem fetching from origin / origin - could be unavailable. Continuing anyway
hudson.plugins.git.GitException: Error performing command: git fetch -t git@github.com:....../......git +refs/heads/*:refs/remotes/origin/*
Command "git fetch -t git@github.com:...../......git +refs/heads/*:refs/remotes/origin/*" returned status code 128: Host key verification failed.
fatal: The remote end hung up unexpectedly
My comments:
I found that jenkins build fails when it executes
git fetch -t git@github.com:...../......git +refs/heads/*:refs/remotes/origin/*
I then pasted the same command on the command line it executes it successfully, weird!
Executed the following to ensure the key works:
ssh -T git@github.com Hi [username]! You've successfully authenticated, but GitHub does not provide shell access.
Suggested in http://help.github.com/ssh-issues/
I did try to copy the generated private ssh key into the .ssh folder beneath Jenkins
cp -rf /root/.ssh /var/lib/jenkins/.ssh
and also copied the .gitconfig file into /var/lib/jenkins
Suggested in: Jenkins fails with github "git clone"