Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I get jenkins-cli.jar to use my ssh agent/keychain?

I'm using the jenkins-cli.jar file from my jenkins server, and on every run it prompts me for my ssh key passphrase. I'd like it to use my ssh keychain so I don't have to enter it on every invocation.

If it matters, I'm on OSX using the default keychain setup, I don't have a manual ssh-agent configured right now.

like image 949
Daenyth Avatar asked Jun 12 '15 15:06

Daenyth


1 Answers

Jenkins CLI client does not support SSH agents for now.

As a workaround, you can generate dedicated key without passphrase, associate it with your Jenkins account and instruct client to use that key on every invocation.

like image 156
Oliver Gondža Avatar answered Sep 18 '22 10:09

Oliver Gondža