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 have deployed Ceph with Juju. I am trying to ssh in with the following command:

sam@maas01:~$ sudo juju ssh ceph/0
Permission denied (publickey,password).
error: exit status 255

I have my public key in /home/sam/.ssh/. I had also tried to explicitly specify the key's path in enviornments.yaml file which didn't help. And as I had seen in many posts not to add ssh keys in MAAS web panel, I haven't added they key there. Any help?

share|improve this question

I do think you need to add your key to MAAS, and, frustratingly, juju destroy-machine and redeploy.

i had seen in many posts not to add ssh keys in MAAS web panel

Btw, where did you read that? If you remember it would be good to know, so that I can add a comment or something. If I'm right.

share|improve this answer
hi gavin, thats bad :( then i think, i have destroy the full environment and redeploy everything. I had read that not to add ssh key in maas preference page on some email thread for ssh issue , i'll check if i have in my history. But then do i need to redeploy juju zookeeper also again? – SaM Aug 22 '13 at 9:20
ok i have destroyed environment, and this time i have copied my public key in maas preference page, and also my juju zookeper is up, so just befor proceeding further i tried to ssh juju zookeper machine with cmd " sudo juju ssh 0" but it gave me same error, Warning: Permanently added 'x4737.master,' (ECDSA) to the list of known hosts. Permission denied (publickey,password). error: exit status 255 – SaM Aug 23 '13 at 13:36
up vote 0 down vote accepted

Aha! i got it working :D. instead of sudoer user ssh key i added root user ssh key.

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.