[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: VirtualBox-GUI-Administration via ssh auf headless-Server? was: [VirtualBox] nichts bootet



On Fri, May 23, 2008 at 07:18:45PM +0200, Sven Hartge wrote:
> Dirk Salva <dsalva@gmx.de> wrote:
> > On Fri, May 23, 2008 at 02:24:53PM +0200, Boris wrote:
> >> Qt WARNING: VirtualBox: cannot connect to X server
> >> . Was für Komponenten muss ich auf dem Server minimal installieren?
> > Gar keine. Auf dem entfernten Server ohne X-Server muß in der
> > /etc/ssh/sshd_config eine Zeile
> > X11UseLocalhost no
> > eingefügt werden.
> Hä? Wozu?

Aus der man-page:

X11UseLocalhost
        Specifies whether sshd should bind the X11 forwarding server to the loopback address or to the
        wildcard address.  By default, sshd binds the forwarding server to the loopback address and sets
        the hostname part of the DISPLAY environment variable to ``localhost''.  This prevents remote hosts
        from connecting to the proxy display.  However, some older X11 clients may not function with this
        configuration.  X11UseLocalhost may be set to ``no'' to specify that the forwarding server should
        be bound to the wildcard address.  The argument must be ``yes'' or ``no''.  The default is ``yes''.

Ich konnte keine einzige grafische Anwendung auf meinem entfernten
(virtuellen) Server im Netz starten, so daß ich die Anzeige lokal
bekam, ohne diese Einstellung. Auf dem Server im Netz ist dabei kein
X-Server installiert (wozu auch). Erst mit dieser Einstellung
funktionierte alles. Beide Systeme Etch.

Die anderen Einstellungen in der sshd_config sind üblicherweise:
X11Forwarding yes
X11DisplayOffset 10

und in der ssh_config (auf dem Client):
ForwardX11 yes
ForwardX11Trusted yes

Mache ich dann eine ssh-Verbindung a la
ssh name@rechner.irnkwas -CL 5901:localhost:5900 -c blowfish-cbc
so kann ich dann auf dem entfernten Server jegliche grafische Anwendung
starten, der output wird auf dem lokalen Rechner ausgegeben.
Ohne "X11UseLocalhost no" in der sshd_config auf dem entfernten Server
ohne X-Server hat das ums Verrecken nicht funktioniert.


ciao, Dirk


Reply to: