2011-06-12 78 views
1

我有安装哈德森从我的远程git仓库看看,但我得到哈德森(詹金斯)和远程的Git仓库得到许可被拒绝

**Permission denied (publickey,gssapi-keyex,gssapi-with-mic,keyboard-interactive).** 

我的git仓库使用的gitosis,当我通过命令行复制工作。哈德森运行相同的用户

这里是日志,主机名和目录编辑的较大部分

Checkout:workspace//Users/me/.hudson/jobs/HudsonJob/workspace - [email protected] 
Cloning the remote Git repository 
Cloning repository origin 
ERROR: Error cloning remote repo 'origin' : Could not clone [email protected]:myproject 
ERROR: Cause: Error performing command: /opt/local/bin/git clone -o origin [email protected]:myproject /Users/me/.hudson/jobs/HudsonJob/workspace 
Command "/opt/local/bin/git clone -o origin [email protected]:myproject /Users/me/.hudson/jobs/HudsonJob/workspace" returned status code 128: Cloning into /Users/me/.hudson/jobs/HudsonJob/workspace... 
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,keyboard-interactive). 
fatal: The remote end hung up unexpectedly 

我也尝试运行在命令行

/opt/local/bin/git clone -o origin [email protected]:myproject /Users/me/.hudson/jobs/HudsonJob/workspace 

它的工作原理如下除了但我必须指定一个密码才能工作。

我的猜测是哈德森构建失败,因为它必须提示输入密码。 通常我猜想,将我的公钥添加到.ssh/authorized keys中可以完成这项工作,但gitosis的授权密钥会使用一些额外的命令自动生成公钥。

所以我想知道我怎么可以允许哈德森访问而不必输入密码?

+0

它与http://stackoverflow.com/questions/6076488/hudson-cannot-access-git-repository有点相关吗? – VonC 2011-06-12 21:11:26

+0

当查看哈德森系统属性时,HOME变量被设置为/ Users/me – Iman 2011-06-12 21:19:40

回答

2

首先,我会建议使用gitolite作为gitosis不再积极发展。

使用不需要密码的密钥。

+1

没有密码的密钥没有办法诀窍:) – Iman 2011-07-06 15:45:15

相关问题