Mailinglist Archive: opensuse (2348 mails)

< Previous Next >
Re: [opensuse] Re: envvar DISPLAY not set on bash invocation fr/sshd
  • From: Sam Clemens <clemens.sam1@xxxxxxxxx>
  • Date: Tue, 01 Apr 2008 06:19:16 -0400
  • Message-id: <47F20C24.90609@xxxxxxxxx>
Joachim Schrod wrote:
Linda Walsh wrote:

lw> printenv DISPLAY
lw> ssh working
working:lw> echo "DISPLAY=$DISPLAY"
lw> ssh fail
fail:lw> echo "DISPLAY=$DISPLAY"

I don't see how it could be on the client machine (it 'works' to another
'remote' machine as well). It's not in /etc/ssh/sshd_config as it
is the same except for the "ListenAddress". the /etc/rc.d/sshd scripts
are the same as are the /etc/sysconfig/ssh files on the two
systems. /etc/{profile,bash.bashrc} also the same on the two systems.

Maybe some login config...I wouldn't think the PAM_LIB would filter.
Anyway, that's where the problem stands.

What's the output of "ssh -v -v fail"?
There should be lines like

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

(These are three lines, in case it gets broken by my MUA.)
Is there additional output? Maybe your X authentication fails.
Is your ~/.Xauthority on `fail' writable by you?

Call "xauth info" on `fail' to check that.
It must output something like
puma:bin $ xauth info
Authority file: /home/schrod/.Xauthority
File new: no
File locked: no
Number of entries: 640
Changes honored: yes
Changes made: no
Current input: (argv):1

(As you can see, I do a lot of remote X connections... :-)

Btw, it is definitively not necessary to set $DISPLAY on the local host before calling ssh, as recommended by Sam. ":0" is a perfectly good value for a local session. Your ssh client can connect to :0 fine (this is done via Unix domain sockets),

But she's not talking about ssh-ing back to the local machine..
she's using ssh to go to another host.

no need to force a TCP connection to port 6000. In fact, Sam's proposal is not good performance-wise, as it turns a /unix X session into a TCP X session and adds another TCP hop to the forwarded X session, increasing latency.

To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >