LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-19-2009, 12:22 PM   #1
chris71mach1
LQ Newbie
 
Registered: Apr 2005
Location: DFW
Distribution: Debian
Posts: 21

Rep: Reputation: 1
strange X forwarding issue


So despite tons of research, reading countless threads, and trying a variety of different ideas to get this working, I seem to have a debian lenny server that just will NOT forward X through ssh for some unknown reason. there are really 2 different ways I'm trying to get this done (or 2 workstations to which I need the server to forward X). the primary (and most important) is to my windows XP user who is using this box as a development server. her login is unprivileged, though I dont think that should really matter. she is using putty to ssh into the box (and I've verified that the X forwarding option in putty is enabled), and I have xming installed on her machine to accommodate the forwarding. when I just couldnt get X to forward to her machine at all, I tried using my own ubuntu 9.04 desktop workstation to troubleshoot the issue, and I cant even run xclock (or any other X app for that matter) from my own linux box here, which leads me to believe that the issue is on the server side of things.

so now on to what I've already tried. As ive already stated, I have verified that the X forwarding option is enabled in putty and xming is installed and running on the user's XP box. naturally, I'm using the -X option on my own machine when I ssh into the server. in the sshd_config on the server, I have verified that it has the following lines exist:

X11Forwarding yes
AllowTcpForwarding yes
X11DisplayOffset 10

At first, I was only getting the error: Error: Can't open display: so I figured the env variable hadn't been set right. my attempt to fix this one was to do: export DISPLAY=localhost:10.0 At first the way it just hung there for a bit, I thought that was going to work, but that basically made it only take longer to produce the error: Error: Can't open display: localhost:10.0 so basically Im right back where I started. I've double checked to make sure that the basic X packages are installed, such as x11-common and x11-apps and the like, which all show to be the current versions available.

So am I missing something? is this server just severely broken at this point, or have I overlooked something so minuscule that I'm not even able to see it at this point?

any help would be appreciated at this point.

Thanks guys!
 
Old 08-19-2009, 02:03 PM   #2
sebelk
Member
 
Registered: Jan 2007
Posts: 66

Rep: Reputation: 15
Hi,

has the server xauth installed?

Greets.
 
Old 08-19-2009, 02:04 PM   #3
chris71mach1
LQ Newbie
 
Registered: Apr 2005
Location: DFW
Distribution: Debian
Posts: 21

Original Poster
Rep: Reputation: 1
yes it does (and from what i can tell, it has the whole time so far)
 
Old 09-02-2009, 05:20 PM   #4
chris71mach1
LQ Newbie
 
Registered: Apr 2005
Location: DFW
Distribution: Debian
Posts: 21

Original Poster
Rep: Reputation: 1
ok, we've finally nailed down the solution to this weirdness. I am just posting the solution here just in case anybody in the future may have a similar problem and in hopes that this thread may end up being helpful at some point.

after getting a new set of eyes on this issue, we just happened to check the running processes to see exactly what X was doing, using: ps aux | grep X and were stunned when we saw the following process running:

/usr/bin/X11/X -nolisten tcp

after toiling around and looking for where in the world this process came from, we finally located the culprit string in the file: /etc/X11/xinit/xserverrc and subsequently deleted the -nolisten tcp flag from the line. restarting X spawned a clean process, and the machine forwards X just fine now.
 
Old 09-02-2009, 06:44 PM   #5
allanf
Member
 
Registered: Sep 2008
Location: MN
Distribution: Gentoo, Fedora, Suse, Slackware, Debian, CentOS
Posts: 100
Blog Entries: 1

Rep: Reputation: 20
Try this...

Code:
ssh -X -Y user@hostname
 
Old 09-03-2009, 12:19 AM   #6
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,126
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
chris71mach1 -nolisten tcp is pretty much the standard way now for starting X and it shouldn't have affected your X11 forwarding in ssh. I run with -nolisten tcp and it works fine. I wonder if your ssh X forwarding is really turned on (did you restart the ssh server after turning it on in the sshd_config), I'd bet your path to X isn't going back over your ssh connection.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange networking problem: connectivity lost when using x11 forwarding Selene Debian 2 10-06-2008 01:53 PM
strange problem with either evolution or yahoo pop forwarding hobylinux Linux - Software 0 12-01-2003 10:16 AM
qmail forwarding issue kbk00 Linux - Software 1 10-05-2003 05:49 AM
strange routing/IP forwarding behavior lukas_z Linux - Networking 3 07-25-2003 10:10 AM
IP Forwarding Issue johntmills Linux - Networking 5 02-13-2002 01:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration