[Lxc-users] lxc-execute-ephemeral?

Serge Hallyn serge.hallyn at canonical.com
Fri Aug 24 01:32:05 UTC 2012


Quoting Dan Kegel (dank at kegel.com):
> On Thu, Aug 23, 2012 at 2:10 PM, Serge Hallyn
> <serge.hallyn at canonical.com> wrote:
> > right, so do '-u <yourusername>' and it'll ssh into the container as you
> > instead.
> 
> But that prompts me for a password, too.  This needs to be unattended.
> I'm getting the feeling that some assembly is required, and I
> should copy /usr/lib/lxc/templates/lxc-ubuntu
> and modify the copy to drop the appropriate files into
> the user's .ssh directory on startup, then use that type
> when creating the container.

You could simply have your .ssh/id_rsa.pub in your .ssh/authorized_keys,
that *should* work.  But nothing wrong with tweaking the template.

-serge




More information about the lxc-users mailing list