Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Duplicate
-
None
-
Jenkins core 2.121.2 and 2.107.x
Git Plugin latest
Git api latest
Description
Issue:
A checkout from the master can not be performed when using a ssh key with a passphrase. It will hang on this step:
> git fetch --tags --progress git@github.com:alexanderrtaylor/support-kb-articles.git +refs/heads/*:refs/remotes/origin/*
And eventually fail.
Workaround:
You can remove the passphrase and it will work normally
Steps to reproduce:
1. Create a SSH key with a specific passphrase like `testing` and add it to Jenkins
2. Add ssh key to github
3. Create a job(freestyle or pipeline the behavior is the same)
4. Use the SSH key connect to the ssh location of the git url
5. Watch as the job fails.
This works normally if I use a shell step to clone from the agent but the git plugin seems to be causing the issue
Attachments
Issue Links
- duplicates
-
JENKINS-20879 SSH Credentials (private key with passphrase) do not work
-
- Closed
-
-
JENKINS-25194 Private key with passphrase does not seem to work
-
- Closed
-
ataylor On my macOS master, it doesn't work for the reasons that Mark explained (the terminal is interactive, so it prompts for the key at the command line, which doesn't work). Once I used setsid and a local JNLP agent it worked fine.
Are you getting a timeout, or a public key error?