Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

i have deployed ceph now i am trying to ssh, so i am running following cmd which is giving me error,

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

i have public key generated in /home/sam/.ssh/ so i am thinking it should work but its not. I had also tied to explicitly specify key path in enviornments.yaml file which didn't helped. And as i had seen in many posts not to add ssh keys in MAAS web panel, so i haven't added key there. how i can ssh ? :(

share|improve this question

2 Answers 2

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,192.168.178.50' (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

 
discard

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.