My goal is to run a local instance of Launchpad on LXD. I have created a container as follows, but cannot SSH onto that container:
$ lxc launch ubuntu:16.04 lpdev -p default -p $USER
$ ssh -A $USER@10.10.10.10
user@10.10.10.10: Permission denied (publickey).
From the instructions:
In order to be able to ssh into the container, you need to add your public key to your local
.ssh/authorized_keys
configuration. Also make sure that both.ssh
(700) andauthorized_keys
(600) have the correct permissions.
I assume this means I need to add my HOST public key to the CONTAINER authorized_keys
. But how do I access that container location? (Clearly not with SSH!)
FWIW I have not mounted host $HOME as container $HOME:
devices:
home:
type: disk
source: $HOME/Documents
path: $HOME/Documents
I suspect that I should be doing something like this instead?
devices:
home:
type: disk
source: $HOME/Documents/lxd
path: $HOME
…and then I would be modifying $HOME/Documents/lxd/.ssh/authorized_keys
, which the container would interpret as $HOME/.ssh/authorized_keys
?