Hudson git error ssh

只愿长相守 提交于 2019-12-03 12:44:35

You should setup a ssh trust relationship between your repo and the git server.

You only need to do this once.

In short it goes qs follows :

Log in as the user running hudson

ssh-keygen

use an empty password

This creates 2 files in .ssh : id_dsa and id_dsa.pub.

cat .ssh/id_dsa.pub

Now copy the gibberish representing the public key.

ssh repo-server

Confirm you want to add the host key to known_hosts. Log in using the account accessing the repo.

cat - >>.ssh/authorized_keys

(double check you have 2 >'s or risk the wrath of your colleagues) Then paste the gibberish you just copied.

Log out and verify you can now ssh without having to provide a password.

This works for Unix based hosts. For github, gitosis, windows the process is similar, but of course different.

Hudson should now be able to connect.

Should that url be:

ssh://build@kdmanalytics.net:/usr/local/repository/kdm/git/TestCaseGenerator.git

?

(Missing colon after the ".net")

If all should be right but it's strangly not working, make sure your project is rally build on the slave you configured.

a_fan

You have to check the following:

  1. You are using ssh keys of the user who ran hudson daemon. For example, if user=hudson, then you should log on as hudson and generate ssh keys
  2. You have loaded your public key to your server (github, assembla) from correct .ssh/id_rsa.pub file i.e. for the same user who ran hudson daemon
  3. You have added RSA fingerprint of your server to your .ssh/known_hosts file
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!