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

你离开我真会死。 提交于 2019-12-09 06:19:21

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/30806578/how-can-i-get-jenkins-cli-jar-to-use-my-ssh-agent-keychain

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!