Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Duplicate
-
None
Description
I added a SSH key credential with a passphrase set on the key. This credential was used in a job as credentials for a Git clone via ssh. The job was not able to execute the Git clone. It failed with the following error in the log:
stdout: Cloning into '/var/lib/jenkins/jobs/Begin_Release/workspace'...
stderr: Permission denied, please try again.
Permission denied, please try again.
Permission denied (publickey,password).
fatal: The remote end hung up unexpectedly
Inspecting the SSH log on the repository server revealed that the publickey method was never attempted. Executing the command as the Jenkins user from the commandline worked.
This could only resolved by removing the passphrase from the key after which the job was able to clone the repository and execute as expected.
Attachments
Issue Links
- duplicates
-
JENKINS-20879 SSH Credentials (private key with passphrase) do not work
-
- Closed
-
-
JENKINS-27998 Git plugin fails to clone with ssh protected passphrase
-
- Closed
-
Activity
Field | Original Value | New Value |
---|---|---|
Link |
This issue duplicates |
Link |
This issue duplicates |
Resolution | Fixed [ 1 ] | |
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] | |
Status | Resolved [ 5 ] | Reopened [ 4 ] |
Resolution | Duplicate [ 3 ] | |
Status | Reopened [ 4 ] | Resolved [ 5 ] |
Status | Resolved [ 5 ] | Closed [ 6 ] |
Workflow | JNJira [ 152163 ] | JNJira + In-Review [ 207168 ] |
Are the same?