Networking Forums

Networking Forums > Computer Networking > Linux Networking > Cannot Get X11 Forwarding to Work via SSH

Reply
Thread Tools Display Modes

Cannot Get X11 Forwarding to Work via SSH

 
 
Brian Boorman
Guest
Posts: n/a

 
      11-06-2004, 10:09 PM
I am having problems getting X Forwarding to work via an SSH tunnel
from my Mandrake 10.1 Linux box to my Windows XP Pro box.

I have installed sshd and updated sshd.conf in /etc/ssh/ so that:
X11Forwarding yes
X11DisplayOffset 10

The X server is started on the linux box.

I have installed Cygwin/X on the XP box, following the directions
there to get X11 running and openSSH running on the XP machine. I can
successfully ssh to the linux machine, and I connect using the -X ssh
option.

BTW, Mandrake was installed with the 'paranoid' option and the
firewall is running. Not sure if that makes a difference as I
understand X11 uses ports on localhost address.

Once connection is made (I did start X on the XP box first), I try
running an X program (such as xterm or kedit) and get an error message
like "Unable to connecto to X server".

I did notice that on the linux machine when I ssh, there is no DISPLAY
env var set. I have tried setting it manually to localhost:10.0 and to
machinename:10.0 but neither works. I am thinking this is part of the
problem. Shouldn't this variable be set automatically?

Any help or suggestions would be greatly appreciated. I am fairly new
to Linux and have not been able to find any answers though Googling on
X Forwarding SSH that solve my problem.

-Brian
 
Reply With Quote
 
 
 
 
Allan Butler
Guest
Posts: n/a

 
      11-07-2004, 02:34 AM
Brian Boorman wrote:

> I am having problems getting X Forwarding to work via an SSH tunnel
> from my Mandrake 10.1 Linux box to my Windows XP Pro box.
>
> I have installed sshd and updated sshd.conf in /etc/ssh/ so that:
> X11Forwarding yes
> X11DisplayOffset 10
>
> The X server is started on the linux box.
>
> I have installed Cygwin/X on the XP box, following the directions
> there to get X11 running and openSSH running on the XP machine. I can
> successfully ssh to the linux machine, and I connect using the -X ssh
> option.
>
> BTW, Mandrake was installed with the 'paranoid' option and the
> firewall is running. Not sure if that makes a difference as I
> understand X11 uses ports on localhost address.
>
> Once connection is made (I did start X on the XP box first), I try
> running an X program (such as xterm or kedit) and get an error message
> like "Unable to connecto to X server".
>
> I did notice that on the linux machine when I ssh, there is no DISPLAY
> env var set. I have tried setting it manually to localhost:10.0 and to
> machinename:10.0 but neither works. I am thinking this is part of the
> problem. Shouldn't this variable be set automatically?
>
> Any help or suggestions would be greatly appreciated. I am fairly new
> to Linux and have not been able to find any answers though Googling on
> X Forwarding SSH that solve my problem.
>
> -Brian



When I had this problem I went ahead in the sshd_configure file and set
X11 forwarding on also. I don't know if that will help you or not as I
am not using Windows on my machines but it works with Linux.
 
Reply With Quote
 
jafar
Guest
Posts: n/a

 
      11-07-2004, 08:45 AM
I demand that on Sat, 06 Nov 2004 15:09:32 -0800, Brian Boorman may or may
not have written:

> BTW, Mandrake was installed with the 'paranoid' option and the
> firewall is running. Not sure if that makes a difference as I
> understand X11 uses ports on localhost address.


The paranoid option in Mandrake is a little extreme. Try bumping it down a
notch and see what happens.

--
Jafar Calley
-----BEGIN GEEK CODE BLOCK-----
d+ s-:+ a C++++ L++ E--- W++ N++ w-- PE- t* 5++ R+ !tv D+ G e* h---- x?
------END GEEK CODE BLOCK------
Registered Linux User #359623
http://fatcat.homelinux.org

 
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
IP Forwarding Phil Buzzette Windows Networking 3 05-01-2006 10:06 PM
Forwarding of multicast packets between two subnets with two NICS - Does not work smshahriar@gmail.com Linux Networking 1 04-26-2005 10:54 AM
my router power light wont work! after firmware upgrade! restore dont work! Chriz Mac Broadband Hardware 1 01-23-2005 02:42 AM
Getting port forwarding to work, Netgear DG834G Dave Barlow Home Networking 5 06-18-2004 10:44 PM
SSH port forwarding can't work with vsftpd FJY Linux Networking 0 10-21-2003 04:10 AM



1 2 3 4 5 6 7 8 9 10 11