Networking Forums

Networking Forums > Computer Networking > Linux Networking > X11 forwarding over ssh is driving me nuts!

Reply
Thread Tools Display Modes

X11 forwarding over ssh is driving me nuts!

 
 
Robert Latest
Guest
Posts: n/a

 
      04-03-2006, 02:06 PM
Hello,

I'm stumped. I can't get X11 forwarding over ssh running for the life of
me. The systems involved are both current Debian/stable. $DISPLAY
doesn't get set on the remote machine even though X11 forwarding is
enabled in the cfg file. The following 9 lines should explain
everything:

-----------
rl@kir:~$ echo $DISPLAY
:0.0
rl@kir:~$ ssh -X tops@grappa
tops@grappa:~$ echo $DISPLAY

tops@grappa:~$ grep X /etc/ssh/sshd_config
X11Forwarding yes
X11DisplayOffset 10
tops@grappa:~$
-----------


What's going wrong?

Thanks,
--robert
 
Reply With Quote
 
 
 
 
Allen McIntosh
Guest
Posts: n/a

 
      04-03-2006, 02:51 PM
> I'm stumped. I can't get X11 forwarding over ssh running for the life of
> me. The systems involved are both current Debian/stable. $DISPLAY
> doesn't get set on the remote machine even though X11 forwarding is
> enabled in the cfg file. The following 9 lines should explain
> everything:
>
> -----------
> rl@kir:~$ echo $DISPLAY
> :0.0
> rl@kir:~$ ssh -X tops@grappa
> tops@grappa:~$ echo $DISPLAY
>
> tops@grappa:~$ grep X /etc/ssh/sshd_config
> X11Forwarding yes
> X11DisplayOffset 10
> tops@grappa:~$
> -----------
>
>
> What's going wrong?


Did you restart sshd after the last time you edited the config file?
Try ssh -vv and see what comes up about X11 forwarding. I see this from
a successful attempt:

debug1: Entering interactive session.
debug2: callback start
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
debug2: client_session2_setup: id 0


If this doesn't turn up anything useful, I would guess that sshd also
produces some useful debug messages. RTFM about how to use -d.
 
Reply With Quote
 
Joe Pfeiffer
Guest
Posts: n/a

 
      04-03-2006, 03:11 PM
Robert Latest <(E-Mail Removed)> writes:

> I'm stumped. I can't get X11 forwarding over ssh running for the life of
> me. The systems involved are both current Debian/stable. $DISPLAY
> doesn't get set on the remote machine even though X11 forwarding is
> enabled in the cfg file. The following 9 lines should explain
> everything:
>
> -----------
> rl@kir:~$ echo $DISPLAY
> :0.0
> rl@kir:~$ ssh -X tops@grappa
> tops@grappa:~$ echo $DISPLAY
>
> tops@grappa:~$ grep X /etc/ssh/sshd_config
> X11Forwarding yes
> X11DisplayOffset 10
> tops@grappa:~$
> -----------
>
>
> What's going wrong?


Do you have ForwardX11 set in /etc/ssh/ssh_config on the local
machine? I forget whether ForwardAgent also needs to be set.
--
Joseph J. Pfeiffer, Jr., Ph.D. Phone -- (505) 646-1605
Department of Computer Science FAX -- (505) 646-1002
New Mexico State University http://www.cs.nmsu.edu/~pfeiffer
 
Reply With Quote
 
Robert Latest
Guest
Posts: n/a

 
      04-03-2006, 03:26 PM
On Mon, 03 Apr 2006 10:51:39 -0400,
Allen McIntosh <(E-Mail Removed)> wrote
in Msg. <0EaYf.44$(E-Mail Removed)>
> Did you restart sshd after the last time you edited the config file?
> Try ssh -vv and see what comes up about X11 forwarding.


debug1: Requesting X11 forwarding with authentication spoofing.
debug2: channel 0: request x11-req
debug2: channel 0: request shell
debug2: fd 3 setting TCP_NODELAY
debug2: callback done
debug2: channel 0: open confirm rwindow 0 rmax 32768
debug1: Remote: No xauth program; cannot forward with spoofing.

Ha! I hadn't installed xbase-clients. Now it works. Thanks!

robert
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
WPA-PSK is driving me nuts - HELP? Sven Pran Wireless Networks 11 05-30-2008 01:19 PM
ROUTING AND REMOTE ACCESS DRIVING ME NUTS...help Calvin.Lai@shaw.ca Windows Networking 4 12-05-2006 11:37 PM
File Sharing on wireless network.. Driving me nuts Jacques Wireless Networks 2 10-17-2006 02:40 AM
this is driving me nuts--noob alert revek1@gmail.com Wireless Internet 0 07-27-2005 12:53 AM
Sporadic connections to external AP driving me nuts Roland Burr Wireless Internet 4 06-19-2004 01:31 PM



1 2 3 4 5 6 7 8 9 10 11