It's all about the answers!

Ask a question

[closed] Jenkins Host key verification failed


Jessica Wilson (1113) | asked May 27 '17, 4:41 a.m.
closed May 27 '17, 3:49 p.m. by Ralph Schoon (63.1k33645)

 I have a problem with jenkins, setting "git", shows the following error:

Failed to connect to repository : Command "git ls-remote -h https://person@bitbucket.org/person/projectmarket.git HEAD" returned status code 128:
stdout:
stderr: fatal: Authentication failed

I have tested with ssh:

git@bitbucket.org:person/projectmarket.git

This is error:

Failed to connect to repository : Command "git ls-remote -h git@bitbucket.org:person/projectmarket.git HEAD" returned status code 128:
stdout:
stderr: Host key verification failed.
fatal: The remote end hung up unexpectedly

I've also done these steps with "SSH key".

Login under Jenkins

sudo su jenkins

Copy your github key to Jenkins .ssh folder

cp ~/.ssh/id_rsa_github* /var/lib/jenkins/.ssh/

Rename the keys

mv id_rsa_github id_rsa
mv id_rsa_github.pub id_rsa.pub

but still not working git repository in jenkins.

thanks by help!.


Comments
Ralph Schoon commented May 27 '17, 3:48 p.m. | edited May 27 '17, 3:49 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

I fail to see why this would be related to the products in this list: https://jazz.net/products. This is the list of products discussed in this forum. Jenkins may come up if related to Rational Team Concert, which I don't see in this question.

I would consider this off topic. Please let me know if I am wrong. Thanks!

The question has been closed for the following reason: "Question is off-topic or not relevant" by rschoon May 27 '17, 3:49 p.m.