[Lxc-users] Unable to SSH to the containers.
Kumar L Srikanth-B22348
B22348 at freescale.com
Fri Feb 5 11:46:34 UTC 2010
Hi,
I have created two containers cont1 and cont2, using 'lxc-sshd' command.
While creating containers, I gave cont1 ip address as '172.16.1.16' and
cont2 ipaddress as '172.16.1.17'.
Prior to creating containers, I followed the following link to create a
bridge 'br0' with the ipaddress '172.16.1.10' which is bridged to
'eth0'.
http://www.ibm.com/developerworks/linux/library/l-lxc-containers/
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 'sshd' service in the respective
containers.
In the cont1:
bash-4.0# ifconfig
Warning: cannot open /proc/net/dev (No such file or directory). Limited
output.
Warning: cannot open /proc/net/dev (No such file or directory). Limited
output.
eth0 Link encap:Ethernet HWaddr 8A:56:BB:58:EF:9D
inet addr:172.16.1.16 Bcast:0.0.0.0 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Warning: cannot open /proc/net/dev (No such file or directory). Limited
output.
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
In the cont1:
bash-4.0# ifconfig
Warning: cannot open /proc/net/dev (No such file or directory). Limited
output.
Warning: cannot open /proc/net/dev (No such file or directory). Limited
output.
eth0 Link encap:Ethernet HWaddr 22:D5:02:24:5E:FC
inet addr:172.16.1.17 Bcast:0.0.0.0 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Warning: cannot open /proc/net/dev (No such file or directory). Limited
output.
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
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 'ssh
172.16.1.17' from the 'cont1', it is prompting for the password. I gave
the password as 'root'.
But, it's exiting the command with the following error:
sh-4.0# ssh 172.16.1.17
root at 172.16.1.17's <mailto:root at 172.16.1.17's> password:
Read from remote host 172.16.1.17: Connection reset by peer
Connection to 172.16.1.17 closed.
Can you please let me know the problem and it's fix.
Regards,
Srikanth.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20100205/7f228c77/attachment.html>
More information about the lxc-users
mailing list