Fedora This forum is for the discussion of the Fedora Project. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
06-02-2006, 04:14 PM
|
#1
|
Member
Registered: Jul 2005
Location: Maine, USA
Distribution: OpenSUSE, Gentoo, Fedora, Ubuntu, Mandriva, others
Posts: 413
Rep:
|
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.
|
|
|
06-02-2006, 05:14 PM
|
#2
|
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:
|
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
|
|
|
06-03-2006, 12:36 PM
|
#3
|
Member
Registered: Jul 2005
Location: Maine, USA
Distribution: OpenSUSE, Gentoo, Fedora, Ubuntu, Mandriva, others
Posts: 413
Original Poster
Rep:
|
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.
|
|
|
06-04-2006, 02:01 PM
|
#4
|
Member
Registered: Jul 2005
Location: Maine, USA
Distribution: OpenSUSE, Gentoo, Fedora, Ubuntu, Mandriva, others
Posts: 413
Original Poster
Rep:
|
Bump......
|
|
|
06-04-2006, 05:09 PM
|
#5
|
Senior Member
Registered: Aug 2005
Posts: 1,755
Rep:
|
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?
|
|
|
06-04-2006, 05:17 PM
|
#6
|
Member
Registered: Jul 2005
Location: Maine, USA
Distribution: OpenSUSE, Gentoo, Fedora, Ubuntu, Mandriva, others
Posts: 413
Original Poster
Rep:
|
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.
|
|
|
06-05-2006, 08:30 PM
|
#7
|
Member
Registered: Jul 2005
Location: Maine, USA
Distribution: OpenSUSE, Gentoo, Fedora, Ubuntu, Mandriva, others
Posts: 413
Original Poster
Rep:
|
I don't pretend to know anything about this, but is it possible it has to do with xauth?
|
|
|
06-08-2006, 07:37 PM
|
#8
|
Member
Registered: Jul 2005
Location: Maine, USA
Distribution: OpenSUSE, Gentoo, Fedora, Ubuntu, Mandriva, others
Posts: 413
Original Poster
Rep:
|
Bump......
|
|
|
06-09-2006, 01:42 AM
|
#9
|
Senior Member
Registered: Nov 2003
Location: Knoxville, TN
Distribution: Kubuntu 9.04
Posts: 1,168
Rep:
|
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. 
|
|
|
06-09-2006, 04:27 PM
|
#10
|
Member
Registered: Jul 2005
Location: Maine, USA
Distribution: OpenSUSE, Gentoo, Fedora, Ubuntu, Mandriva, others
Posts: 413
Original Poster
Rep:
|
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.
|
|
|
06-09-2006, 05:34 PM
|
#11
|
Senior Member
Registered: Nov 2003
Location: Knoxville, TN
Distribution: Kubuntu 9.04
Posts: 1,168
Rep:
|
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.
|
|
|
06-09-2006, 10:06 PM
|
#12
|
Member
Registered: Jul 2005
Location: Maine, USA
Distribution: OpenSUSE, Gentoo, Fedora, Ubuntu, Mandriva, others
Posts: 413
Original Poster
Rep:
|
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.
|
|
|
06-13-2006, 03:08 PM
|
#13
|
Member
Registered: Jul 2005
Location: Maine, USA
Distribution: OpenSUSE, Gentoo, Fedora, Ubuntu, Mandriva, others
Posts: 413
Original Poster
Rep:
|
OK, I'm bumping this. I really can not find a solution.
|
|
|
06-14-2006, 03:01 PM
|
#14
|
Member
Registered: Jul 2005
Location: Maine, USA
Distribution: OpenSUSE, Gentoo, Fedora, Ubuntu, Mandriva, others
Posts: 413
Original Poster
Rep:
|
Bump......
|
|
|
06-15-2006, 01:39 PM
|
#15
|
Member
Registered: Apr 2005
Location: Northeast USA
Distribution: current is PCLOS (server) and Suse (desktop)
Posts: 102
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 10:53 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|