SSH keys setup for the Aegir system user?

Events happening in the community are now at Drupal community events on www.drupal.org.
Posted by leevh on June 24, 2012 at 3:51am

Hello, I'm curious if anyone does this and would care to share how.

I'm experimenting with drush make for building platforms in octopus, and I'm trying to pull themes etc from my private repos on bitbucket. The syntax I tried using is

projects[myblugear][download][type] = "git"
projects[myblugear][download][url] = "git@bitbucket.org:myusername/mysite-d7-theme.git"
projects[myblugear][type] = "theme"
projects[myblugear][download][branch] = "master"

The build is failing, and I believe because that syntax is SSH and my octopus user probably needs a key to match one on bitbucket.

Anyone have experience doing this?

thanks!

Comments

Login to the Aegir system

Posted by doka on June 24, 2012 at 6:51am

Login to the Aegir system user, go to its home, and generate an SSH keypair:

sudo su - aegir
ssh-keygen -t rsa

Press few enters, and you'll find the needed public key in ~/.ssh/id_rsa.pub, you should probably copy it to bitbucket.org.

Thanks for the info doka! I

Posted by leevh on June 25, 2012 at 4:41am

Thanks for the info doka! I tried what you said, but I cannot seem to switch to the aegir user, I tried what you have, and "sudo su aegir"... is this because it has no shell set up?

Also, if I am building the makefiles from an Octopus instance, would I need to switch to that octopus user?

thanks!

That's correct as aegir is a

Posted by jamiet on June 25, 2012 at 8:31am

That's correct as aegir is a system user it does not have a default shell. This is a security feature so should be left as is. To login as aegir you need to instruct SU which shell to use as follows:

su -s /bin/bash aegir

However if you want to do this for an octopus instance then you need to do this for the octopus user (assumes octopus user is o1):
su -s /bin/bash o1

If you want this just to provide some make files then you could create a non-system user and set that up to pull down the make files from git. This is how I have done it - that way the set of make files are available to all octopus instances.

HTH,

JamieT

Aegir hosting system

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

AltStyle によって変換されたページ (->オリジナル) /