Quoting Dan Kegel (d...@kegel.com):
> On Thu, Aug 23, 2012 at 2:10 PM, Serge Hallyn
> <serge.hal...@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

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users

Reply via email to