Trouble accessing LXC container

Hi all,

I’ve got a couple LXC containers running that I’m trying to experiment with Ansible on:

$ sudo lxc-ls --fancy
NAME STATE IPV4 IPV6 AUTOSTART

If you don’t have a SSH key setup, you’ll need to use --ask-pass (and have the askpass program installed) in order for it to prompt you for the password. You could write a play that deployed your key that way.

When creating a container (lxc-create) if your using the ubuntu or ubuntu-cloud template… you can pass in an -S to pass a public key for future access. The ubuntu-cloud template also has support for -S on lxc-clone.

Thanks Kapil and James, you got me in the right direction :slight_smile: Problems solved!

Best,
-jay