Die Verwendung von Juju gibt den Fehler "ssh ungültiger Schlüssel" zurück


Kann mir jemand sagen, dass ein Teil des Codes ausgeführt wird, wenn ich Folgendes tue: juju status.

Ich führe Juju auf OpenStack aus und möchte einige Dienste bereitstellen. Wenn ich jedoch den Juju-Status ausführe, wird mir ein SSH INVALID KEY-Fehler zurückgegeben:

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. 

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:


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