[users at bb.net] Using SSH keys with GitPoller and Git step?

Pierre Tardy tardyp at gmail.com
Thu Mar 2 08:09:42 UTC 2017

Hi Chris
What I usually do is to put the credentials into the ~/.gitconfig of the
You can use the insteadOf directive of the gitconfig so that you buildbot
looks like

Then you gitconfig has something like:

[url "ssh://bot:password@myserver.mycompany.com/"]

Note that the best practice is to use ssh keys, instead of password. We are
currently working at a nice method to get the master send ssh keys and
other creds securely to the worker just for the time of a step.


On Thu, Mar 2, 2017 at 2:18 AM Chris Spencer <chrisspen at gmail.com> wrote:

> How do you specify the ssh key to use with the Gitpoller and Git step
> classes?
> I'm currently hard-coding my username/password in the repourl, and I'd
> like to move away from that for security reasons. However, even after
> reading the docs and looking at the source, I can see no obvious way to
> specify the pem key file to checkout and fetch via ssh.
> _______________________________________________
> users mailing list
> users at buildbot.net
> https://lists.buildbot.net/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildbot.net/pipermail/users/attachments/20170302/57361a2e/attachment.html>

More information about the users mailing list