yes, you create the ~/.ssh dir, if needed. no, do *not* store keys in your git repo. .nando
On Fri, Jan 8, 2016 at 1:26 PM, Chris Spencer <[email protected]> wrote: > 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? > > On Tue, Jan 5, 2016 at 6:16 PM, Fernando Pando < > [email protected]> wrote: > >> Hi Chris, >> >> 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. >> >> 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. >> >> cheers, >> .nando >> >> On Tue, Jan 5, 2016 at 6:03 PM, Chris Spencer <[email protected]> >> wrote: >> >>> How do you configure Buildbot to use SSH keys instead of a password when >>> polling a Git repository? >>> >>> The only way I could get Buildbot to work with my private repo was to >>> give it a URL like: >>> >>> https://username:[email protected]/myuser/myrepo.git >>> >>> However, Buildbot displays this URL on almost every page in the web UI, >>> showing the user's password. How do I prevent this? >>> >>> _______________________________________________ >>> users mailing list >>> [email protected] >>> https://lists.buildbot.net/mailman/listinfo/users >>> >> >> >
_______________________________________________ users mailing list [email protected] https://lists.buildbot.net/mailman/listinfo/users
