Re: JENKINS-20879 [SSH Credentials (private key with passphrase) do not work]

483 views
Skip to first unread message

Jeff Trull

unread,
Jan 22, 2016, 8:04:46 PM1/22/16
to Jenkins Developers
I wanted to comment on this bug, which I am also experiencing. I apologize for writing to the developer list, but the bug tracker signup said that "due to spam" I would have to do it this way...

I am running Jenkins in a terminal window in Ubuntu 15.10 via "java -jar jenkins.war" and configuring it in a browser window.

I set up two credentials as "SSH username with private key".  One of them is generated without a passphrase and the other with.  When I configure my build to use the one with the passphrase, a prompt of this form appears in the terminal window in which Jenkins is running:

Enter passphrase for key '/tmp/ssh4822078610521010444key': 

If I enter the passphrase here the build proceeds.  When I use the credential that has *no* passphrase, but is otherwise generated identically, no password prompt appears and the build works without manual intervention.

Expected result: Jenkins uses the passphrase stored in the configured credential instead of prompting.

One possible workaround might be to use ssh-agent.  Unfortunately I am also affected by an ssh-agent bug https://issues.jenkins-ci.org/browse/JENKINS-32120.

I am running Jenkins 1.645, Git plugin 2.4.1 and Git client 1.19.1.  I hope this information is useful.

Best Regards,
Jeff

Larry Shatzer, Jr.

unread,
Jan 23, 2016, 1:44:14 PM1/23/16
to jenkin...@googlegroups.com
What email or userid did you try to sign up with? I tried searching for this email you have here, and do not see it in the attempted account creations. Or you can try again. Sorry for the inconvenience, we have been under almost constant spam attack on the wiki.

-- Larry

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/d42463f3-59e8-4d16-9a06-73385e717cce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages