• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

[gelöst] gnome-Programme wollen nicht per SSH X-Forwarding

rolle

Guru
Liebe Leute!

Nach langem Überlegen bin ich in diesem Forum hängen geblieben, da sich hier wohl die meisten Scripting-Gurus rumtreiben.
Mein Problem ist folgenden:
Ich möchte per SSH X-Forwarding Linuxprogramme auf dem Server starten und am Client sehen. Das klappt soweit auch ganz gut, solange das keine gnome-Programme sind. Also z.B. Scribus, Konqueror, lyx, xfe gehen, Gimp und InkScape nicht. Mein Befehl lautet immer 'ssh -X NUTZERIN@SERVER /PFAD/PROGRAMM'.
Bei Gimp meldet der SSH-Debug nach 'confirm X11' 'Emergency save activated!' und daß Inkscape geschlossen worden sei. Gimp beginnt kurz seinen Startbildschirm anzeigen zu wollen und bricht dann ab. Medlung hier: 'Exit Status -1'. Es ist egel, ob ich es von einem Cygwin- oder einem Linuxterminal versuche. Mit root-Rechten klappt alles.
Hier also meine Frage: Was ist an gnome-Programmen anders als an anderen und wie bekomme ich es trotzdem hin?

Danke.
 
Mit SuSE 10.0 geht es bei mir so:

ssh -X localhost "/opt/gnome/bin/gimp"

Auch über:
ssh -X localhost
=> Auf der Shell:
echo $DISPLAY
=> rechner:10.0
gimp
=> startet normal

Ich würde mal mit:
/etc/sysconfig/displaymanager :DISPLAYMANAGER_XSERVER_TCP_PORT_6000_OPEN="yes"

+ SuSEconfig (?))
+ X -Neustart versuchen, wenn es ein SuSE ist.

Schätze aber das ist es nicht.

Haveaniceday
 
OP
R

rolle

Guru
Doch, es handelt sich um SuSE 10. Per SSH auf localhost geht es auch, nicht aber auf einen anderen Rechner.
echo $DISPLAY liefert localhost:12.0, das ist also in Ordnung. Gimp und Inkscape liefern dann aber einen Speicherzugriffsfehler.
Das Ziel der ganzen Aktion soll ein Terminalserver light für Windowsclients werden. Dabei sollen die Programme wie gewohnt per Klick gestartet werden, es muß also der SSH-Befehl per Batchfile auf einmal absetzbar sein.
 
ssh -v -v -X localhost /opt/gnome/bin/gimp
Code:
OpenSSH_4.1p1, OpenSSL 0.9.7g 11 Apr 2005
debug1: Reading configuration data /home/no/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to localhost [127.0.0.1] port 22.
debug1: Connection established.
debug2: key_type_from_name: unknown key type '-----BEGIN'
debug2: key_type_from_name: unknown key type '-----END'
debug1: identity file /home/no/.ssh/identity type -1
debug1: identity file /home/no/.ssh/id_rsa type -1
debug1: identity file /home/no/.ssh/id_dsa type -1
debug1: Remote protocol version 1.99, remote software version OpenSSH_4.1
debug1: match: OpenSSH_4.1 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.1
debug2: fd 3 setting O_NONBLOCK
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr
debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none,zlib
debug2: kex_parse_kexinit: none,zlib
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr
debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none,zlib
debug2: kex_parse_kexinit: none,zlib
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: mac_init: found hmac-md5
debug1: kex: server->client aes128-cbc hmac-md5 none
debug2: mac_init: found hmac-md5
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug2: dh_gen_key: priv key bits set: 141/256
debug2: bits set: 518/1024
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug2: no key of type 0 for host localhost
debug2: no key of type 2 for host localhost
The authenticity of host 'localhost (127.0.0.1)' can't be established.
RSA key fingerprint is 44:ee:66:74:c8:d8:d9:05:47:ab:ff:e6:dd:cc:bb:aa.
Are you sure you want to continue connecting (yes/no)? yes
Failed to add the host to the list of known hosts (/home/no/.ssh/known_hosts).
debug2: bits set: 536/1024
debug1: ssh_rsa_verify: signature correct
debug2: kex_derive_keys
debug2: set_newkeys: mode 1
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug2: set_newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug2: key: /home/no/.ssh/identity ((nil))
debug2: key: /home/no/.ssh/id_rsa ((nil))
debug2: key: /home/no/.ssh/id_dsa ((nil))
debug1: Authentications that can continue: publickey,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Trying private key: /home/no/.ssh/identity
debug1: read PEM private key done: type RSA
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: publickey,keyboard-interactive
debug1: Trying private key: /home/no/.ssh/id_rsa
debug1: Trying private key: /home/no/.ssh/id_dsa
debug2: we did not send a packet, disable method
debug1: Next authentication method: keyboard-interactive
debug2: userauth_kbdint
debug2: we sent a keyboard-interactive packet, wait for reply
debug2: input_userauth_info_req
debug2: input_userauth_info_req: num_prompts 1
Password:
debug2: input_userauth_info_req
debug2: input_userauth_info_req: num_prompts 0
debug1: Authentication succeeded (keyboard-interactive).
debug1: channel 0: new [client-session]
debug2: channel 0: send open
debug1: Entering interactive session.
debug2: callback start
debug2: x11_get_proto: /usr/X11R6/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
debug1: Sending environment.
debug1: Sending env LANG = en_US.UTF-8
debug2: channel 0: request env confirm 0
debug1: Sending command: /opt/gnome/bin/gimp
debug2: channel 0: request exec confirm 0
debug2: fd 3 setting TCP_NODELAY
debug2: callback done
debug2: channel 0: open confirm rwindow 0 rmax 32768
debug2: channel 0: rcvd adjust 131072
debug1: client_input_channel_open: ctype x11 rchan 2 win 65536 max 16384
debug1: client_request_x11: request from 127.0.0.1 45508
debug2: fd 7 setting O_NONBLOCK
debug1: channel 1: new [x11]
debug1: confirm x11
debug2: channel 1: window 57884 sent adjust 73188
debug2: channel 1: window 62724 sent adjust 68348
debug2: channel 1: window 65080 sent adjust 65992
debug2: channel 1: window 52012 sent adjust 79060
debug2: channel 1: window 64912 sent adjust 66160
debug2: channel 1: window 58304 sent adjust 72768
debug2: channel 1: rcvd adjust 32780
debug2: channel 1: rcvd adjust 32792
debug2: channel 1: window 56620 sent adjust 74452
debug2: channel 1: window 55168 sent adjust 75904
... Bild aufgebaut...
 
OP
R

rolle

Guru
Wie gesagt, auf localhost habe ich auch keine Probleme.
Aber beim Konnekten auf einen anderen Rechner lieftert debug2 mir nach viermal 'window ZAHL sent adjust ZAHL' leider etwas anderes als bei Dir, nämlich 'channel 0: rcvd eof' und nach mehreren weiteren Fehlermeldungen 'rcvd close' 'is dead'.
 
OP
R

rolle

Guru
Gut, daß es bei Dir geht, stellt sich also die Frage: Was ist bei Dir anders als bei mir?
 
Was gibt den folgendes:
- Anmelden per ssh
ssh -X -l user andererechner
strace gimp

Ich hoffe es gibt nicht zu viel Ausgaben beim strace...
Bei mir ist es zu viel um es mal zu posten.

Haveaniceday
 
OP
R

rolle

Guru
DankeDankeDanke!
Der Tip mit strace war Gold wert. Als eine der letzten Fehlermeldungen kam, daß eine Schriftdatei aufgrund mangelnder Berechtigungen nicht lesbar sei. Es war eine relativ neu installierte (per Hand im Konqueror kopiert). Nachdem ich der Welt Leserechte auf alle Schriften gab, lief plötzlich alles. Auf die Idee muß man erst einmal kommen.....
 
Schön das es läuft.
Was mich wundert ist der Abbruch von "gnome" Programmen und "NichtAbbruch" durch andere Software.

Das ist evtl. mal einen kleinen Bugeintrag beim Gnome-projekt wert.

Haveaniceday

PS: strace und lsof sind meine Lieblingsanalysetools. Spielen damit
finde ich schöner als die Games die es sonst so gibt..
 
Oben