PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : X-session via SSH?



roots
22.08.05, 12:34
tach allerseits!

hab meinen rechner (1) unter ubuntu hoary und einen anderen (2) im lan unter suse9.2 laufen.

wenn ich jetzt von (1) nach (2) connecte via


ssh -X ipadresse_von_(2)

und dann über diese verbindung auf (2) versuche eine anwendung zu starten, die eine GUI hat, sodaß ich die GUI auf (1) sehe, so bekomme ich die fehlermeldung:


anwendung: cannot connect to X server

als (1) noch ebenfalls unter suse lief, hat es funktioniert. bin auf dem gebiet eher n00b, würde mich daher über jeden hinweis freuen!

merci!
.roots

klemens
22.08.05, 12:49
Zumindest bei Debian sarge ist das X-Forwarding in /etc/ssh/sshd_config standardmässig ausgeschalten:

X11Forwarding yes

roots
22.08.05, 12:56
yo, in der config steht an dieser stelle ein "no", aber wenn ich beim aufruf explizit ein "-X" angebe solle es doch dennoch funzen?
wie auch immer, das ändern der config auf "yes" brachte keine veränderung! :-/

klemens
22.08.05, 13:07
Schick dir einmal zum Vergleich meine sshd_config


oldie:~# cat /etc/ssh/sshd_config
# Package generated configuration file
# See the sshd(8) manpage for details

# What ports, IPs and protocols we listen for
Port 22
# Use these options to restrict which interfaces/protocols sshd will bind to
#ListenAddress ::
#ListenAddress 0.0.0.0
Protocol 2
# HostKeys for protocol version 2
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
#Privilege Separation is turned on for security
UsePrivilegeSeparation yes

# Lifetime and size of ephemeral version 1 server key
KeyRegenerationInterval 3600
ServerKeyBits 768

# Logging
SyslogFacility AUTH
LogLevel INFO

# Authentication:
LoginGraceTime 600
PermitRootLogin yes
StrictModes yes

RSAAuthentication yes
PubkeyAuthentication yes
#AuthorizedKeysFile %h/.ssh/authorized_keys

# Don't read the user's ~/.rhosts and ~/.shosts files
IgnoreRhosts yes
# For this to work you will also need host keys in /etc/ssh_known_hosts
RhostsRSAAuthentication no
# similar for protocol version 2
HostbasedAuthentication no
# Uncomment if you don't trust ~/.ssh/known_hosts for RhostsRSAAuthentication
#IgnoreUserKnownHosts yes

# To enable empty passwords, change to yes (NOT RECOMMENDED)
PermitEmptyPasswords no

# Change to no to disable s/key passwords
#ChallengeResponseAuthentication yes

# Change to yes to enable tunnelled clear text passwords
PasswordAuthentication no


# To change Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#AFSTokenPassing no
#KerberosTicketCleanup no

# Kerberos TGT Passing does only work with the AFS kaserver
#KerberosTgtPassing yes

X11Forwarding yes
X11DisplayOffset 10
PrintMotd no
PrintLastLog yes
KeepAlive yes
#UseLogin no

#MaxStartups 10:30:60
#Banner /etc/issue.net

Subsystem sftp /usr/lib/sftp-server

UsePAM yes
oldie:~#

sshd hast neu gestartet?
Probier vielleicht einmal
ssh -Y
$DISPLAY ist gesetzt worden? - sollte bei ssh -X automatisch gehen.
(echo $DISPLAY)

Damit ist meine Weisheit jetzt auch zu Ende :(

pcdog
22.08.05, 13:17
es braucht beide sache, ein yes in der config und ein ssh -X und dann gehts ;)

grüsse
Silvan

Blackhawk
22.08.05, 13:25
yo, in der config steht an dieser stelle ein "no", aber wenn ich beim aufruf explizit ein "-X" angebe solle es doch dennoch funzen?
wie auch immer, das ändern der config auf "yes" brachte keine veränderung! :-/
Das -X gilt nur fuer den Client (also ssh) waehrend die sshd eine eigene Config hat. das -X kannst Du Dir sparen, wenn du die ssh.conf aenderst. Solange Dein Server (sshd) es aber ablehnt, hat es keinen Sinn.

roots
22.08.05, 13:34
oki, jetzt funzt es :-)

dankeschööön!
.roots