Portál AbcLinuxu, 15. července 2025 12:32
Řešení dotazu:
ssh -X
nebo ssh -Y
. Pokud je X11 Forwarding povolený, tak už DISPLAY bude nastavené a nemusíte nic řešit.
firefox Error: no display specified echo $DISPLAY <----- nic
export DISPLAY=192.168.55.55:0.0 firefox
ssh -Xzkoušel jsem na ssh klientovi ~/.ssh/config
... ForwardX11 yes ...na serveru je v configu sshd
X11Forwarding yesPři této konfiguraci je $DISPLAY nenastavena
ssh -X user@server
ssh -X vrba@integrato ale na problému nic nemění. Na server se přihlásím, ale nefunguje mi ani forward X11 pomocí ssh ani export DISPLAY.
debug2: x11_get_proto: /usr/bin/xauth list :0.0 2>/dev/null debug1: Requesting X11 forwarding with authentication spoofing. debug2: channel 0: request x11-req confirm 0resp. okolo nějakou chybu, proč to neforwarduje?
AllowTcpForwarding yes X11Forwarding yes X11DisplayOffset 10 X11UseLocalhost yesa pokud spustím
-bash-3.2$ xclock Error: Can't open display:
/usr/bin/X :0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch -background none
ssh -X ...@.... export DISPLAY=localhost:10.0 firefox --no-remoteJo, a ssh se dá volat ve verbose ( -X -v) modu a z něj se dá vyčíst, co se děje:
... debug1: Requesting X11 forwarding with authentication spoofing. ...
[SeatDefaults] greeter-session=unity-greeter user-session=ubuntu xserver-allow-tcp=truefunguje
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.