我安裝了Jenkins作爲守護進程(在mac os x 10.7上),我使用'real-os-user
'作爲JENKINS USER。gitolite - 與詹金斯混帳 - 無法訪問
我想配置使用Git項目(helloworld
)工作,但我得到以下錯誤:
Failed to connect to repository : Command "git ls-remote -h git-server-name:helloworld HEAD" returned status code 128:
stdout:
stderr: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,keyboard-interactive).
fatal: The remote end hung up unexpectedly
如果我在終端窗口中運行「git ls-remote -h git-server-name:helloworld HEAD
」,它工作正常。
我印刷 'env
' 變量,並且我參見Jenkins使用 'real-os-user
' ..
任何想法讚賞。由於
看看這是否解決您的問題http://stackoverflow.com/questions/14064502/git-push-gives-permission-denied-publickey-fatal-the-remote-end-hung-up-unex – Siddharth