Portál AbcLinuxu, 10. května 2025 08:33
Zdravim, na jednom zo serverov mam problem (na ostatnych to ide) so spustenim lubovolnej vzdialenej x-aplikacie. Kazda skonci s hlaskou: Can't open display: localhost:10.0. Ak sa na vzdialenom serveri prihlasim ako root, tak sa aplikacia normalne spusti a vystup ide (ako zvycajne) na klienta. X11 forwarding mam v sshd_config na YES a prihlasujem sa cez ssh -XC uzivatel@vzialeny_server. Viete mi prosim niekto poradit v com je problem? Toto sa mi este nikdy nestalo.
Vdaka
...
Enter passphrase for key '/home/rastos/.ssh/id_dsa':
debug1: read PEM private key done: type DSA
debug1: Authentication succeeded (publickey).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: Requesting X11 forwarding with authentication spoofing.
ssh -vv:
...
Enter passphrase for key '/home/rastos/.ssh/id_dsa':
debug1: read PEM private key done: type DSA
debug2: we sent a publickey packet, wait for reply
debug1: Authentication succeeded (publickey).
debug1: channel 0: new [client-session]
debug2: channel 0: send open
debug1: Entering interactive session.
debug2: callback start
debug2: x11_get_proto: /usr/bin/xauth -f /tmp/ssh-OvbRN24262/xauthfile generate :0.0 MIT-MAGIC-COOKIE-1 untrusted timeout 1200 2>/dev/null
debug2: x11_get_proto: /usr/bin/xauth -f /tmp/ssh-OvbRN24262/xauthfile list :0.0 2>/dev/null
debug1: Requesting X11 forwarding with authentication spoofing.
debug2: channel 0: request x11-req confirm 0
Hm, z nejakého dôvodu to v tomto momente nefunguje ani mne. Remote programy sa sťažujú na BadDrawable a BadWindow errory od X-ov. Ale to bude imho niečo iné ako u teba.
mam tam toto:
.....
debug1: channel 0: new [client-session]
debug2: channel 0: send open
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug2: callback start
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 0
debug2: client_session2_setup: id 0
debug2: channel 0: request pty-req confirm 1
debug2: channel 0: request shell confirm 1
debug2: fd 3 setting TCP_NODELAY
debug2: callback done
debug2: channel 0: open confirm rwindow 0 rmax 32768
debug2: channel_input_status_confirm: type 99 id 0
debug2: PTY allocation request accepted on channel 0
debug2: channel 0: rcvd adjust 2097152
debug2: channel_input_status_confirm: type 99 id 0
debug2: shell request accepted on channel 0
a potom viacero rovnakych riadkov
debug2: channel 0: request window-change confirm 0
debug2: client_check_window_change: changed
......
No nie som z toho mudry. Nic taketo nemam:
x11_get_proto: /usr/bin/xauth -f /tmp/ssh-OvbRN24262/xauthfile generate :0.0 MIT-MAGIC-COOKIE-1 untrusted timeout 1200 2>/dev/nul
Ani toto nepomohlo.
Kedze to bola nova instalacia a predpokladam, ze sa nieco "zmrvilo" pocas nej (zrejme v nejakom subore zle nastavene prava/vlastnik), urobil som ju nanovo. Bolo to ovela rychlejsie ako celodnove hladanie "v com je pes zakopany". Presiel som rozne fora na nete a nic z toho co som skusal nepomohlo. /etc som mal zalohovany, tak som prekopiroval dolezite subory naspat a po 20 minutach instalacie a konfiguracie ide vsetko uplne normalne; niekedy je to najschodnejsia cesta.
Dakujem vsetkym.
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.