<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16981" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN
class=941013410-05022010>Hi,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=941013410-05022010>I have created two
containers cont1 and cont2, using <EM>'lxc-sshd' </EM>command. While creating
containers, I gave cont1 ip address as '172.16.1.16' and cont2 ipaddress as
'172.16.1.17'.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=941013410-05022010>Prior to creating
containers, I followed the following link to create a bridge <EM>'br0'
</EM>with the ipaddress '172.16.1.10' which is bridged to
'<EM>eth0</EM>'.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=941013410-05022010><A
href="http://www.ibm.com/developerworks/linux/library/l-lxc-containers/">http://www.ibm.com/developerworks/linux/library/l-lxc-containers/</A></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=941013410-05022010></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=941013410-05022010>I am able to run
both the containers. And also, I am able to see the ipaddress which were
assigned to the respective containers. After sarting each container, I started
<EM>'sshd' </EM>service in the respective containers.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=941013410-05022010></SPAN></FONT><FONT
face=Arial size=2><SPAN class=941013410-05022010></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=941013410-05022010><STRONG>In the
cont1:</STRONG></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=941013410-05022010><EM>bash-4.0#
ifconfig<BR>Warning: cannot open /proc/net/dev (No such file or directory).
Limited output.<BR>Warning: cannot open /proc/net/dev (No such file or
directory). Limited output.<BR>eth0 Link
encap:Ethernet HWaddr
8A:56:BB:58:EF:9D<BR> inet
addr:172.16.1.16 Bcast:0.0.0.0
Mask:255.255.255.0<BR> UP
BROADCAST RUNNING MULTICAST MTU:1500
Metric:1</EM></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><EM></EM></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=941013410-05022010><EM>Warning: cannot
open /proc/net/dev (No such file or directory). Limited
output.<BR>lo Link encap:Local
Loopback<BR> inet
addr:127.0.0.1
Mask:255.0.0.0<BR> UP
LOOPBACK RUNNING MTU:16436 Metric:1<BR></EM></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=941013410-05022010>
<DIV><FONT face=Arial size=2><SPAN class=941013410-05022010><STRONG>In the
cont1:</STRONG></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=941013410-05022010><SPAN
class=941013410-05022010><EM>bash-4.0# ifconfig</EM></SPAN></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=941013410-05022010><EM>Warning: cannot
open /proc/net/dev (No such file or directory). Limited output.<BR>Warning:
cannot open /proc/net/dev (No such file or directory). Limited
output.<BR>eth0 Link encap:Ethernet HWaddr
22:D5:02:24:5E:FC<BR> inet
addr:172.16.1.17 Bcast:0.0.0.0
Mask:255.255.255.0<BR> UP
BROADCAST RUNNING MULTICAST MTU:1500
Metric:1</EM></SPAN></FONT></DIV>
<DIV><EM></EM> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=941013410-05022010><EM>Warning: cannot
open /proc/net/dev (No such file or directory). Limited
output.<BR>lo Link encap:Local
Loopback<BR> inet
addr:127.0.0.1
Mask:255.0.0.0<BR> UP
LOOPBACK RUNNING MTU:16436 Metric:1<BR></EM></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=941013410-05022010>Here, the problem is
that I am unable to SSH from one container to other (cont1 to cont2 and
viceversa). If I execute the command <EM>'ssh 172.16.1.17'</EM> from the
<EM>'cont1'</EM>, it is prompting for the password. I gave the password as
'<EM>root</EM>'. </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=941013410-05022010>But, it's exiting
the command with the following error: </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=941013410-05022010></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=941013410-05022010><EM>sh-4.0# ssh
172.16.1.17<BR></EM><A
href="mailto:root@172.16.1.17's"><EM>root@172.16.1.17's</EM></A><EM>
password:<BR>Read from remote host 172.16.1.17: Connection reset by
peer<BR>Connection to 172.16.1.17 closed.</EM></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=941013410-05022010><EM></EM></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=941013410-05022010>Can you please let
me know the problem and it's fix.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=941013410-05022010></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=941013410-05022010>Regards,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=941013410-05022010>Srikanth.</DIV></SPAN></FONT></DIV></SPAN></FONT></BODY></HTML>