[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Remote connections to X apps



On 07/19/2007 04:44 PM, dsavage@peaknet.net wrote:
> I sure don't see any mention of X11 forwarding in this output.

That's would seem to suggest the client isn't setup right, since the
message about X11 comes from the client and not the server.

> Well, allrighty then... su to root on the remote server and re-run it:
>    # set -x ; grep -i x11 /etc/ssh/sshd_config
>    + grep -i x11 /etc/ssh/sshd_config
>    #X11Forwarding no
>    X11Forwarding yes
>    #X11DisplayOffset 10
>    #X11UseLocalhost yes

That looks right.  Of course, you could always test the config file with
this:

$ sudo /usr/sbin/sshd -tddde

You also may want to consider restarting the sshd daemon:

$ sudo /etc/init.d/ssh restart

This is under Ubuntu.  Adjust for your distro.

> I'll go out on a limb here and guess that the remote server either (a)
> isn't doing what it's supposed to do, or (b) isn't being told to do the
> right thing.

Or could still be something with the client. Try this script in an Xterm
on the client, changing user= and ip= for your system, and post the
contents of output.txt:

true ; (
user=rwcitek
ip=192.168.0.103
set -x
echo --$DISPLAY--
\ssh -vv -Y -l $user $ip xterm /bin/echo 2>&1 |
grep -i -e x11 -e xterm
) >& output.txt

Here's what output.txt looked on my machine:

$ cat output.txt
+ echo --:0.0--
--:0.0--
+ ssh -vv -Y -l rwcitek 192.168.0.103 xterm /bin/echo
+ grep -i -e x11 -e xterm
debug2: x11_get_proto: /usr/bin/xauth  list :0.0 . 2>/dev/null
debug1: Requesting X11 forwarding with authentication spoofing.
debug2: channel 0: request x11-req confirm 0
debug1: Sending command: xterm /bin/echo
debug1: client_input_channel_open: ctype x11 rchan 3 win 65536 max 16384
debug1: client_request_x11: request from 127.0.0.1 42309
debug1: channel 1: new [x11]
debug1: confirm x11
debug1: channel 1: free: x11, nchannels 2

An xterm flashed briefly on my screen.

Regards,
- Robert


-
To unsubscribe, send email to majordomo@silug.org with
"unsubscribe silug-discuss" in the body.