[Lxc-users] Unable to SSH to the containers.

Daniel Lezcano daniel.lezcano at free.fr
Fri Feb 5 13:25:10 UTC 2010


Kumar L Srikanth-B22348 wrote:
>  
>
> -----Original Message-----
> From: Daniel Lezcano [mailto:daniel.lezcano at free.fr] 
> Sent: Friday, February 05, 2010 5:51 PM
> To: Kumar L Srikanth-B22348
> Cc: lxc-users at lists.sourceforge.net
> Subject: Re: [Lxc-users] Unable to SSH to the containers.
>
> Kumar L Srikanth-B22348 wrote:
>   
>>  
>> Hi Daniel,
>> Please see my inline comments.
>>
>> Regards,
>> Srikanth
>>
>> -----Original Message-----
>> From: Daniel Lezcano [mailto:daniel.lezcano at free.fr]
>> Sent: Friday, February 05, 2010 5:40 PM
>> To: Kumar L Srikanth-B22348
>> Cc: lxc-users at lists.sourceforge.net
>> Subject: Re: [Lxc-users] Unable to SSH to the containers.
>>
>> Kumar L Srikanth-B22348 wrote:
>>   
>>     
>>> My lxc version is 0.6.3.
>>>   
>>>     
>>>       
>> Ok.
>>
>> I suppose you tried with lxc-ssh script to create the container, right
>>     
> ?
>   
>> Srikanth>> Yes, with lxc-sshd script.
>>
>> You should try:
>>
>> lxc-execute -n cont1 /bin/bash
>> /usr/sbin/sshd
>> Srikanth>> You mean to execute the following command: "lxc-execute -n
>> cont1 /bin/bash /usr/sbin/sshd" ?
>> No, I meant get a shell in a container and from this shell launch
>>     
> sshd.
> Srikanth>> I am doing the same. First, I am starting container using
> "lxc-start -n container1 /bin/bash". I got a bash shell, from there I am
> executing the command "/usr/sbin/sshd &". After that, I am executing
> "lxc-netstat -n container1 -tano" and on port 22, I am able to see that
> sshd is running. I am following the above process for both the
> containers. But still, I am unable to SSH into other container.
>   
You should use lxc-execute, this one will mount /proc and more.
lxc-start is to launch /sbin/init

Please can you provide after launching both container:
 - the result of ifconfig on the host
 - the result of 'brctl show"






More information about the lxc-users mailing list