<div dir="ltr">Hi Chris<div>What I usually do is to put the credentials into the ~/.gitconfig of the worker.</div><div>You can use the insteadOf directive of the gitconfig so that you buildbot looks like</div><div>git://myserver_id/repo</div><div><br></div><div>Then you gitconfig has something like:</div><div><div><br></div><div>[url "ssh://<a href="http://bot:password@myserver.mycompany.com/">bot:password@myserver.mycompany.com/</a>"]</div><div>    insteadOf=git://myserver_id/</div></div><div><br></div><div>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.<br></div><div><br></div><div>Regards</div><div>Pierre</div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Mar 2, 2017 at 2:18 AM Chris Spencer <<a href="mailto:chrisspen@gmail.com">chrisspen@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="gmail_msg"><div class="gmail_msg">How do you specify the ssh key to use with the Gitpoller and Git step classes?<br class="gmail_msg"><br class="gmail_msg"></div>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.<br class="gmail_msg"></div>
_______________________________________________<br class="gmail_msg">
users mailing list<br class="gmail_msg">
<a href="mailto:users@buildbot.net" class="gmail_msg" target="_blank">users@buildbot.net</a><br class="gmail_msg">
<a href="https://lists.buildbot.net/mailman/listinfo/users" rel="noreferrer" class="gmail_msg" target="_blank">https://lists.buildbot.net/mailman/listinfo/users</a></blockquote></div>