[英]Jenkins unable to connect GIT repository: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password)
Hi my Jenkins instance is unable to connect to GIT repository although I googled a lot.嗨,我的 Jenkins 实例无法连接到 GIT 存储库,尽管我搜索了很多。 Both Jenkins and GIT were installed on same CentOS server. Jenkins 和 GIT 都安装在同一个 CentOS 服务器上。 This is the screenshot I got during pipeline set up:这是我在管道设置期间得到的屏幕截图:
I have done following:我做了以下工作:
Jenkins will not use the SSH Keys located on the master or slave that runs the job. Jenkins 不会使用位于运行作业的主站或从站上的 SSH 密钥。 So your setup with placing the keys in ~/.ssh
and having a username/password credential set up on on the master will not work.因此,将密钥放在~/.ssh
并在主服务器上设置用户名/密码凭据的设置将不起作用。
Instead you should create a set of credentials using the SSH Credential Plugin , where you can also specify the passphrase for the private key.相反,您应该使用SSH Credential Plugin创建一组凭证,您还可以在其中指定私钥的密码。 The jobs then need to use this credential to connect to the repository.然后,作业需要使用此凭据连接到存储库。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.