Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I would like to deploy something but I need to be able to have teammates interact with the environment.

How do I do this? Are ssh keys involved?

share|improve this question
add comment

1 Answer

up vote 4 down vote accepted

With juju 1.16 and newer, you should be able to juju bootstrap to initialize the environment. This will create a ~/.juju/environments/$ENVNAME.jenv file.

That file has all the information needed to connect to your Juju environment. (admin-secret, control bucket, etc.)

For most uses of Juju, you don't need ssh access, because you can add new services, relate them, etc without SSH.

If you do want shared ssh access (such as for 'juju ssh 1'), then you need to have shared keys. It is possible to set "authorized-keys" in your environment's configuration, or to use juju set authorized-keys=XXX to a list of keys.

However, authorized-keys is only used when launching new instances, it doesn't retroactively add them to machines that are already running. To do that, you can ask the person who bootstrapped to use ssh-import-id $userid on any machine that you need to share.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.