Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 5 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

Your Answer


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.