Hi Phani, Is the key used for the machine known to juju? You can view the ssh keys with `juju authorized-keys list` for juju 1.x, and `juju list-ssh-keys` for juju 2.0.
If it's not there, you can use the following commands to add the key and juju will try to use it when connecting to the machine: juju 1.x: `juju authorized-keys add` juju 2.0: `juju add-ssh-key` Let me know if this works for you. Thanks! -Cheryl On Sat, May 21, 2016 at 5:18 AM, phani shankar <[email protected]> wrote: > Hi, > > I am trying to use add-machine command to add a machine to juju > environment. The machine being added uses public/private key > authentication. I am facing following error. > > juju add-machine ssh:[email protected] > ERROR subprocess encountered error code 255 (Permission denied > (publickey).) > > > This works fine when I use the command to add a machine which does > password based authentication. I understand that it is due to not passing > the correct key credentials. But I am not sure how I can pass necessary > credentials. Please advise. > > Regards, > PHANI SHANKAR > > -- > Juju-dev mailing list > [email protected] > Modify settings or unsubscribe at: > https://lists.ubuntu.com/mailman/listinfo/juju-dev > >
-- Juju-dev mailing list [email protected] Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju-dev
