On Wed, Jun 07, 2006 at 11:53:10PM +0200, Albert Shih wrote:
>  Le 07/06/2006 à 22:39:35+0200, Andreas John a écrit
> > Hello,
> > 
> > usually you set in you /etc/hosts file the host 'localhost' to the
> > public IP of the guest. There is no real need to have a 127.0.0.1
> > accessible. If you e.g. ping 127.0.0.1 from within a guest, it get
> > automatically mapped to the public IP of the guest.
> > 
> > If you need a 127-x address within your guest, you may add a 127.0.0.2
> > etc. to each guest.
> > 
> 
> Well..
> 
> My real problem is my X11-Forwarding in ssh don't work. I've a host to run
> two guest. On one guest everything work fine (x11 forwarding) and if i ping
> localhost I've something (in term the host known localhost=127.0.0.1).
> On my second guest if I make
> 
>       ssh -Y guest_on_my_vserver_box
> 
> and try
> 
>       xclock
> 
> I've got 
> 
> [EMAIL PROTECTED] ~]$ xterm
> _X11TransSocketINETConnect() can't get address for localhost:6012: Name or
> service not known
> xterm Xt error: Can't open display: localhost:12.0
> 
> and if I try 
> 
> [EMAIL PROTECTED] ~]$ ping localhost
> ping: unknown host localhost
> 
> What's wrong with my config ?

add the /etc/hosts entry for your public IP and
everything should be fine.

note: there is a config in ssh to use localhost
and another one to enable/disable x forwarding
completely .. you might want to play with that

HTH,
Herbert

> Best regards.
> 
> --
> Albert SHIH
> Universite de Paris 7 (Denis DIDEROT)
> U.F.R. de Mathematiques.
> 7 ième étage, plateau D, bureau 10
> Heure local/Local time:
> Wed Jun 7 23:48:34 CEST 2006
> _______________________________________________
> Vserver mailing list
> [email protected]
> http://list.linux-vserver.org/mailman/listinfo/vserver
_______________________________________________
Vserver mailing list
[email protected]
http://list.linux-vserver.org/mailman/listinfo/vserver

Reply via email to