[Lxc-users] how to start sshd service in application container?

Fajar A. Nugraha list at fajar.net
Wed Mar 7 14:27:46 UTC 2012


2012/3/7 陈竞 <cj.magina at gmail.com>:
> we know that we can start sshd in system container.

You mean the host?

> However can we start
> sshd in application container?
>

You mean the guest? Sure.

> since the application container has virtual network configuration.

Just start it like you usually do from inside the container.

In fact, if you're using Ubuntu (tested on 12.4 anyway) for the guest,
and it was created with lxc-create, then it should have sshd enabled
by default.

If you're having problems look at the guest's log. Last time I was
having problems with Centos5 guest and sshd it was because the guest's
/dev/null is a FILE instead of a character device.

-- 
Fajar




More information about the lxc-users mailing list