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

Can someone tell me with piece of code is executed when i do: juju status.

I'm running Juju on OpenStack and I want to deploy some services but when i do juju status it returns me an SSH INVALID KEY error:

Permission denied (publickey).
ConnectionReset reading response for 'BzrDir.open_2.1', retrying
Permission denied (publickey).
bzr: ERROR: Connection closed: Unexpected end of message. Please check connectivity and permissions, and report a bug if problems persist. 
share|improve this question
I Still seem to have the same Error although i can ssh successfully onto the other machine and back but while trying the command 'juju status' i always seem to get the error invalid ssh key or the machine may still be initializing. Any help would be appreciated :) – user43818 Jan 27 '12 at 15:30

You have to generate a keypair on machine from which you're running juju bootstrap.

I just generated the keyspair

ssh-keygen -t dsa

Again did,

juju -v bootstrap

You should also integrate your ssh key with Launchpad so that you can pull charms from the charm store:

share|improve this answer

Given that juju verifies at bootstrap that it has a valid ssh key. I think the problem more likely related to the image, namely that it doesn't have a cloud-init installed in the image. Juju needs cloud-init installed in the image to finish the instance installation post launch. ie. a standard server iso image is not sufficient, it needs to have cloud-init installed. Standard cloud images which have cloud-init can be found here

If error persists please pastebin the output from

euca-get-console-output instance-id
share|improve this answer
I think it has more to do with my network connection because my Nova does not direct internet access, the routing fails when the running instance tires to install zookeeper and other packages. Please find output of euca-get-console-output instance-id along with – koolhead17 Nov 29 '11 at 10:09

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.