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'm trying to use the manual provider to setup a juju environment on a remote server; when I try juju bootstrap I get:

ERROR initialising SSH storage failed: failed to create storage dir: subprocess encountered error code 255 (Permission denied (publickey).)

I've generated my config per the docs for manual provider ( and I have ssh access on the machine in question (e.g. the private key I have is valid).

I have no idea what's blocking here; I get the same message running bootstrap verbosely.

share|improve this question

Enter the SSH config file:

# contents of $HOME/.ssh/config
Host juju-bootstrap
    HostName # assuming that public ip address of the bootstrap-host is
    User uname # assuming that defined bootstrap-user is uname
    IdentityFile ~/.ssh/yourprivateky

When using ssh Juju will honor the defined configuration and connect without a problem.

In addition you would need to add entry to /etc/hosts to enable Juju to communicate over http(s)   juju-bootstrap
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.