Did you put the public key into /root/.ssh/ correctly?
I know you won't listen, but logging in directly as root is not usual for Ubuntu systems, even containers. If you use lxd to create the container, the "ubuntu" account is created for sudo needs.
You can use an lxc exec from the lxc host, btw to directly connect into the container as root, if you like.
Code:
$ lxc exec {container-name} /bin/bash
I just tested that and it worked. Got a root shell inside the container.
Is your LXD networking configured for NAT, hostonly, or bridged? I only use bridged and don't have this issue.
Bookmarks