LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 06-02-2006, 04:14 PM   #1
pdeman2
Member
 
Registered: Jul 2005
Location: Maine, USA
Distribution: OpenSUSE, Gentoo, Fedora, Ubuntu, Mandriva, others
Posts: 413

Rep: Reputation: 30
Can't get X forwarding working with SSH.


I've used sshd on a number of different operating systems, but only with Fedora have I had an X forwarding issues. I've configured the sshd_config file to allow for X forwarding. Whenever I try to run a graphical program on my Fedora server, it either just doesn't work or it says something like "could not initialize the graphical user interface".

I've looked at everything in the sshd_config file, and I can't seem to find the problem.

Thanks in advance.
 
Old 06-02-2006, 05:14 PM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
How are you connecting? Command line or gui app?
In command line I use the -Y to enable X over the ssh session.
ssh -Y username@IP_address

Brian1
 
Old 06-03-2006, 12:36 PM   #3
pdeman2
Member
 
Registered: Jul 2005
Location: Maine, USA
Distribution: OpenSUSE, Gentoo, Fedora, Ubuntu, Mandriva, others
Posts: 413

Original Poster
Rep: Reputation: 30
I always use the CLI. For the command, I've always used -X on everything to enable X. I tried using -Y and I get the same result I did with -X.
 
Old 06-04-2006, 02:01 PM   #4
pdeman2
Member
 
Registered: Jul 2005
Location: Maine, USA
Distribution: OpenSUSE, Gentoo, Fedora, Ubuntu, Mandriva, others
Posts: 413

Original Poster
Rep: Reputation: 30
Bump......
 
Old 06-04-2006, 05:09 PM   #5
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
What is the output of "echo $DISPLAY" on your local computer? What is the output of "echo $DISPLAY" on the remote computer when you log in through SSH? Does your problem occur with only some programs, or all X programs?
 
Old 06-04-2006, 05:17 PM   #6
pdeman2
Member
 
Registered: Jul 2005
Location: Maine, USA
Distribution: OpenSUSE, Gentoo, Fedora, Ubuntu, Mandriva, others
Posts: 413

Original Poster
Rep: Reputation: 30
On both the local and the remote machine echo $DISPLAY shows: localhost:10.0

I've had this issue with every X program I've tried.

Last edited by pdeman2; 06-04-2006 at 09:11 PM.
 
Old 06-05-2006, 08:30 PM   #7
pdeman2
Member
 
Registered: Jul 2005
Location: Maine, USA
Distribution: OpenSUSE, Gentoo, Fedora, Ubuntu, Mandriva, others
Posts: 413

Original Poster
Rep: Reputation: 30
I don't pretend to know anything about this, but is it possible it has to do with xauth?
 
Old 06-08-2006, 07:37 PM   #8
pdeman2
Member
 
Registered: Jul 2005
Location: Maine, USA
Distribution: OpenSUSE, Gentoo, Fedora, Ubuntu, Mandriva, others
Posts: 413

Original Poster
Rep: Reputation: 30
Bump......
 
Old 06-09-2006, 01:42 AM   #9
Crito
Senior Member
 
Registered: Nov 2003
Location: Knoxville, TN
Distribution: Kubuntu 9.04
Posts: 1,168

Rep: Reputation: 53
Don't have a solution to your problem, but I just ssh'd into my FC5 box from SuSE 10.1 with X forwarding and ran a couple apps (tvtime blew up BTW... was worth a try, lol.) So it works for me. I have firewall and selinux disabled though, if that makes any difference.
 
Old 06-09-2006, 04:27 PM   #10
pdeman2
Member
 
Registered: Jul 2005
Location: Maine, USA
Distribution: OpenSUSE, Gentoo, Fedora, Ubuntu, Mandriva, others
Posts: 413

Original Poster
Rep: Reputation: 30
Well, I just took this to fedoraforum.org. No luck yet, but it's a new thread.

http://fedoraforum.org/forum/showthread.php?t=112826

Thanks for the help.
 
Old 06-09-2006, 05:34 PM   #11
Crito
Senior Member
 
Registered: Nov 2003
Location: Knoxville, TN
Distribution: Kubuntu 9.04
Posts: 1,168

Rep: Reputation: 53
Quote:
Originally Posted by pdeman2
I've configured the sshd_config file to allow for X forwarding.
Well, if it seems to be working for everyone else (even with firewall and selinux enabled) then it's likely something you did to the sshd_config file, IMHO. I didn't have to do anything to it for X forwarding to work.
 
Old 06-09-2006, 10:06 PM   #12
pdeman2
Member
 
Registered: Jul 2005
Location: Maine, USA
Distribution: OpenSUSE, Gentoo, Fedora, Ubuntu, Mandriva, others
Posts: 413

Original Poster
Rep: Reputation: 30
Well, the first time I tried to get X working, I was using the original configuration. By saying I configured it to allow X forwarding, I really meant that the config file said X forwarding was enabled.
 
Old 06-13-2006, 03:08 PM   #13
pdeman2
Member
 
Registered: Jul 2005
Location: Maine, USA
Distribution: OpenSUSE, Gentoo, Fedora, Ubuntu, Mandriva, others
Posts: 413

Original Poster
Rep: Reputation: 30
OK, I'm bumping this. I really can not find a solution.
 
Old 06-14-2006, 03:01 PM   #14
pdeman2
Member
 
Registered: Jul 2005
Location: Maine, USA
Distribution: OpenSUSE, Gentoo, Fedora, Ubuntu, Mandriva, others
Posts: 413

Original Poster
Rep: Reputation: 30
Bump......
 
Old 06-15-2006, 01:39 PM   #15
ride153
Member
 
Registered: Apr 2005
Location: Northeast USA
Distribution: current is PCLOS (server) and Suse (desktop)
Posts: 102

Rep: Reputation: 15
Try freenx i use it to access my linux box when a gui is needed. if i only need a console then i just use ssh that way.
 
  


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
SSH X forwarding djgerbavore Linux - Networking 1 11-17-2005 09:40 AM
X forwarding via SSH bd1308 Linux - Software 4 08-30-2005 07:13 PM
IP forwarding not working on ppp-over-ssh vpn tingdahl Linux - Networking 3 08-27-2004 06:31 PM
ssh and X-forwarding Björneborg Linux - Networking 2 02-19-2004 10:50 AM
ssh X forwarding has stopped working. microtim Linux - Networking 2 09-20-2003 05:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 08:07 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