Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

[closed] Jenkins Host key verification failed

 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!.

0 votes

Comments

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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 151

Question asked: May 27 '17, 4:41 a.m.

Question was seen: 9,553 times

Last updated: May 27 '17, 3:49 p.m.

Confirmation Cancel Confirm