Hudson 无法访问 git 存储库
我正在尝试让 hudson 从远程存储库中提取数据,我已经在 hudson 用户之间从 /usr/lib/hudson/.ssh/id_rsa.pub 到 gitosis keydir 之间建立了 ssh 信任关系(就像我为数百人所做的那样)其他用户)
当我以 hudson 身份 ssh 并运行时
git 克隆 git@gitserver:项目
我得到的
项目你不会通过!
输入密码:
是否有任何原因导致 hudson 用户无法从 gitosis 克隆而其他用户却可以?
我也尝试过全新安装 hudson。
HUDSON_HOME 设置为 /usr/lib/hudson
已尝试将 git 路径作为 git 和 /usr/bin/git
任何帮助表示赞赏! :)
I am trying to get hudson to pull from a remote repository, I have set up an ssh trust relationship between the hudson user from /usr/lib/hudson/.ssh/id_rsa.pub to the gitosis keydir (like I have done for hundreds of other users)
when I ssh in as hudson and run
git clone git@gitserver:project
I get
You shall not pass!
Enter Password:
is there any reason the hudson user cannot clone from gitosis but every other user can?
I have tried with a fresh install of hudson as well.
HUDSON_HOME is set to /usr/lib/hudson
have tried git path as git and /usr/bin/git
any help appreciated! :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在处理 ssh 时,这里重要的一个环境变量是
$HOME
。并且 Hudson 用户的“
$HOME
”可能无法从 Hudson 进程中设置/获知,即使该“Hudson 用户”确实有一个家。请参阅“为 Gerrit 和 Hudson 创建 SSH 密钥”了解更多详细信息并检查您在本地和远程端的权限。
HUDSON_HOME
与 ssh 无关。When dealing with ssh, the one environment variable which is important here is
$HOME
.And the "
$HOME
" of the Hudson user might not be set/known from the Hudson process, even though that "Hudson user" does have a home.See "Creating SSH keys for Gerrit and Hudson" for more details and check your permissions on both the local and the remote sides.
HUDSON_HOME
isn't relevant for ssh.