<div dir="ltr">yes, you create the ~/.ssh dir, if needed.  <div>no, do *not* store keys in your git repo.</div><div>.nando</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 8, 2016 at 1:26 PM, Chris Spencer <span dir="ltr"><<a href="mailto:chrisspen@gmail.com" target="_blank">chrisspen@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Where do I put the key? Buildbot runs as the buildbot user, but there's no /home/buildbot/.ssh directory. Would I need to create one or can I store the key in my project directory? How do I give Gitpoller the location of the key?<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 5, 2016 at 6:16 PM, Fernando Pando <span dir="ltr"><<a href="mailto:fernando.pando@stelligent.com" target="_blank">fernando.pando@stelligent.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span><div dir="ltr"><div>Hi Chris,</div><div><br></div><div>you can generate an ssh keypair for the user buildbot is running as, and then add the public key as a "deployment key" to the git repo. with multiple slaves, you can either add a unique keypair for each slave and have multiple deployment keys in git repo, or push pre-generated keys to the slaves as part of your automated buildbot deployment.  it is the slave(s) that do the cloning, so they need the keys, not master.</div><div><br></div><div>ensure the correct perms on ssh keys, and use ssh url for the repo.   lastly, make sure your slaves have .ssh/known_hosts populated with host key of your git server.  you can use ssh-keyscan for this.</div><div><br></div><div>cheers,</div><div>.nando</div></div></span><div class="gmail_extra"><br><div class="gmail_quote"><span>On Tue, Jan 5, 2016 at 6:03 PM, Chris Spencer <span dir="ltr"><<a href="mailto:chrisspen@gmail.com" target="_blank">chrisspen@gmail.com</a>></span> wrote:<br></span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr"><div>How do you configure Buildbot to use SSH keys instead of a password when polling a Git repository?<br><br>The only way I could get Buildbot to work with my private repo was to give it a URL like:<br><br>    <a href="https://username:password@bitbucket.org/myuser/myrepo.git" target="_blank">https://username:password@bitbucket.org/myuser/myrepo.git</a><br><br></div>However, Buildbot displays this URL on almost every page in the web UI, showing the user's password. How do I prevent this?<br></div>
<br></div></div><span>_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@buildbot.net" target="_blank">users@buildbot.net</a><br>
<a href="https://lists.buildbot.net/mailman/listinfo/users" rel="noreferrer" target="_blank">https://lists.buildbot.net/mailman/listinfo/users</a><br></span></blockquote></div><br></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>