[sclug] ssh -X not setting $DISPLAY

John Stumbles john at stumbles.org.uk
Fri Jan 5 17:14:57 UTC 2007


Matt Dainty wrote:
> * Sean Furey <sean-lists-sclug at furey.me.uk> [2007-01-05 14:31:00]:
> 
>>Check /etc/ssh/sshd_config on shuttle for a line "X11Forwarding no".
>>Debian has this disabled by default as far as I remember.

/etc/ssh/sshd_config says

# Configuration data is parsed as follows:
#  1. command line options
#  2. user-specific file
#  3. system-wide file
# Any configuration value is only changed the first time it is set.
# Thus, host-specific definitions should be at the beginning of the
# configuration file, and defaults at the end.

... suggesting -X on the command line should override the config file 
default.

On neither box do I have a ~/.ssh/config file.

In /etc/ssh/sshd_config on both boxes I have

#   ForwardAgent no

commented out. One box has

Host *

the other has it commented out, but changing either (not sure which file 
controls the forwarding aspect) doesn't change the behaviour.




> Also check that your target box has at least xauth installed, if it
> lacks an X server (i.e. a headless server that just has the necessary
> X11 libraries installed, etc.).

Both boxes are running kdm & kde so _should_ have xauth, shouldn't they?


-- 
John Stumbles


More information about the Sclug mailing list