About this list Date view Thread view Subject view Author view Attachment view

From: DukeGangsta (gangsta_at_tg-tg.de)
Date: Wed 24 Aug 2005 - 11:56:24 BST


Hi

you should do a little change in your /etc/ssh/sshd_config of the
host-machine:
-----------------
ListenAddress <ip_of_host>
-----------------
... and restart sshd-process.
The result is, that the host only listens on that IP, and connections to
the other IPs can go to the vservers.
You have to do this with most services on your host.

Michael

Subhabrata Bhattacharya schrieb:

>Hi,
>
>I am intrigued about how networking is dealt with vserver contexts.In
>Xen, virtual bridges are created and the communication occurs through
>these bridges within the Xen VMs.Whats the case with the VServer
>architecture?
>
>I have the following Vservers running:
>
>$vserver-stat
>CTX PROC VSZ RSS userTIME sysTIME UPTIME NAME
>0 101 1.7G 716.3M 1d08h02 18h40m14 5d19h54 root server
>10 1 2.7M 532K 0m00s10 0m00s10 4h28m52 tintin
>11 1 2.7M 532K 0m00s10 0m00s00 4h24m54 snowy
>
>I have assigned the following IP addresses to my Vservers:
>
>[root_at_xion vservers]# ifconfig -a
>eth0 Link encap:Ethernet HWaddr 00:01:80:52:29:30
> inet addr:192.168.207.222 Bcast:192.168.207.255 Mask:255.255.255.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:27960086 errors:0 dropped:0 overruns:0 frame:0
> TX packets:1344605 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:3040888245 (2900.0 Mb) TX bytes:131125658 (125.0 Mb)
> Interrupt:17 Base address:0xc000
>
>eth0:snow Link encap:Ethernet HWaddr 00:01:80:52:29:30
> inet addr:192.168.207.64 Bcast:192.168.207.255 Mask:255.255.255.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:27960086 errors:0 dropped:0 overruns:0 frame:0
> TX packets:1344605 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:3040888245 (2900.0 Mb) TX bytes:131125658 (125.0 Mb)
> Interrupt:17 Base address:0xc000
>
>eth0:tint Link encap:Ethernet HWaddr 00:01:80:52:29:30
> inet addr:192.168.207.51 Bcast:192.168.207.255 Mask:255.255.255.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:27960086 errors:0 dropped:0 overruns:0 frame:0
> TX packets:1344605 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:3040888245 (2900.0 Mb) TX bytes:131125658 (125.0 Mb)
> Interrupt:17 Base address:0xc000
>
>lo Link encap:Local Loopback
> inet addr:127.0.0.1 Mask:255.0.0.0
> UP LOOPBACK RUNNING MTU:16436 Metric:1
> RX packets:6034 errors:0 dropped:0 overruns:0 frame:0
> TX packets:6034 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:2468824 (2.3 Mb) TX bytes:2468824 (2.3 Mb)
>
>
>When I try to ssh to any of the vservers specifying IP, I end up
>getting a shell in the local host machine. What could be the problem?
>
>~$ubh
>_______________________________________________
>Vserver mailing list
>Vserver_at_list.linux-vserver.org
>http://list.linux-vserver.org/mailman/listinfo/vserver
>
>

_______________________________________________
Vserver mailing list
Vserver_at_list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


About this list Date view Thread view Subject view Author view Attachment view
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Wed 24 Aug 2005 - 11:57:10 BST by hypermail 2.1.3