Hallo Gemeinde!
Ich bin mit meinem Latein am Ende. Ich will X11-Forwarding per ssh zwischen 2 Computer nutzen. Nach vielem rumgoogeln hoffe ich hier auf Hilfe.
Meine Situation:
Normale connect per ssh funktioniert. Connecte ich via ssh und starte ich ein graphisches Programm erscheint es auf dem Server, statt auf dem Client. (das geschieht mit und ohne -X) Habe ich auf dem Server mit dem verwendeten User keine graphische Session kriege ich eine Fehlermeldung. Beispiel gedit:
(gedit:15895): WARNING **: Could not open X display No protocol specified (gedit:15895): Gtk-WARNING **: cannot open display: :0.0
ich verwende folgenden Befehl: ssh -X user@host.local
Situation auf Server:
/etc/ssh/sshd_config
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | Port 22 Protocol 2 HostKey /etc/ssh/ssh_host_rsa_key HostKey /etc/ssh/ssh_host_dsa_key HostKey /etc/ssh/ssh_host_ecdsa_key UsePrivilegeSeparation yes KeyRegenerationInterval 3600 ServerKeyBits 1024 SyslogFacility AUTH LogLevel INFO LoginGraceTime 120 PermitRootLogin without-password StrictModes yes RSAAuthentication yes PubkeyAuthentication yes IgnoreRhosts yes RhostsRSAAuthentication no HostbasedAuthentication no PermitEmptyPasswords no ChallengeResponseAuthentication no X11Forwarding yes X11DisplayOffset 10 X11UseLocalhost no PrintMotd no PrintLastLog yes TCPKeepAlive yes AddressFamily inet AcceptEnv LANG LC_* Subsystem sftp /usr/lib/openssh/sftp-server UsePAM yes |
xauth ist installiert
/etc/hosts
127.0.0.1 localhost 127.0.1.1 <HOSTNAME> # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters
Situation auf Client:
/etc/ssh/ssh_config
ForwardX11 yes ForwardX11Trusted yes
Ich bin dankbar für jede Hilfe