-
Bug
-
Resolution: Fixed
-
Major
-
Jenkins Server
* CentOS 6.5 (x86_64 - 2.6.32)
* There are no slaves
* Jenkins ver. 1.542 (latest, installed as a package from: http://pkg.jenkins-ci.org/redhat)
* Git plugin is 2.0 (latest)
* Git client plugin is 1.4.6 (latest)
* Git version is 1.7.1 (latest installed w/ yum)
Am I doing something wrong, or is this not something that is supported?
When I try to add a Git SCM using SSH credentials, it fails with the following error (see SCMError.png):
Failed to connect to repository : Command "ls-remote -h git@github.com:AppDirect/StandingCloud.git HEAD" returned status code 128: stdout: stderr: Permission denied (publickey). fatal: The remote end hung up unexpectedly
I've configured the private key properly (as far as I know anyway)... See PrivateKeyConfiguration.png
I've also tried the same configuration under a credential domain in case git was hung with a message like this (See CredentialDomain.png):
The authenticity of host 'github.com (192.30.252.128)' can't be established. RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48. Are you sure you want to continue connecting (yes/no)?
I've tested and the private key that I am using does have access:
[root@jenkins ~]# ssh -T -i /dev/shm/id_rsa git@github.com The authenticity of host 'github.com (192.30.252.128)' can't be established. RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'github.com,192.30.252.128' (RSA) to the list of known hosts. Enter passphrase for key '/dev/shm/id_rsa': Hi nshenry03! You've successfully authenticated, but GitHub does not provide shell access.
As a workaround I can add/create a key as the jenkins user; however, it would be great if I could use the SSH Credentials plugin so that the key is backed up and restored if I move to a new Jenkins server.
- is duplicated by
-
JENKINS-20638 SSH key credential doesn't work with key passphrase
- Closed
-
JENKINS-25194 Private key with passphrase does not seem to work
- Closed
-
JENKINS-27998 Git plugin fails to clone with ssh protected passphrase
- Closed
-
JENKINS-53134 Git checkout fails when using an SSH key with a passphrase
- Closed
- links to