使用私钥/权限被拒绝时,Jenkins git身份验证失败

时间:2016-07-21 07:03:44

标签: git jenkins repository

目前我正在尝试设置Jenkins,我在Jenkins的集成项目上遇到了问题,并在git服务器上安装了它的存储库。

作为连接凭据,我设置了一个用户名和一个私钥,我将其直接放入文本框中。 好吧,我不知道为什么,但每当我尝试连接到GIT存储库时,我得到128个响应代码。密钥和地址都可以,因为我使用这些参数将代码中的更改提交到此存储库(我通过PuTTy创建会话,然后通过TortoiseGit提交)。

以下是来自服务器的错误响应:

Failed to connect to repository : Command "C:\Users\user\AppData\Local\Programs\Git\cmd\git.exe -c core.askpass=true ls-remote -h git_repository_url.git HEAD" returned status code 128:
stdout: 
stderr: Permission denied, please try again. 
Permission denied, please try again. 
Permission denied (publickey,password,keyboard-interactive). 
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

到目前为止,我唯一想到的是缺少Jenkins流程系统权限,但我实际上并不确定它只是为了存储库连接而需要这些权限。

有人和Jenkins有过类似的问题吗?

0 个答案:

没有答案