Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-25-2009, 06:48 AM   #1
LQ Newbie
Registered: Oct 2009
Posts: 2

Rep: Reputation: 0
SSH: X11 forwarding problems


I am experiencing difficulties to use X forwarding. I am using a couple of RHEL5 virtual machines.

I am trying this command on the machine where I have GNOME installed:

#ssh -X firefox's password:
Error: no display specified

On the same box I have the following DISPLAY defined

#echo $DISPLAY

I have checked the ssshd config files on but remote and local servers and 'X11Forwarding' variable is set to 'yes'

Has anyone an idea?

Thanks a lot for your time.

Old 10-25-2009, 08:20 AM   #2
Registered: Jul 2005
Posts: 74

Rep: Reputation: 15
what is your remote computer? windows or linux?
how are you trying to connect in the first place?
Old 10-26-2009, 03:38 PM   #3
LQ Newbie
Registered: Oct 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Both machines are running RHEL 5
Old 10-26-2009, 03:58 PM   #4
Registered: Jul 2005
Posts: 74

Rep: Reputation: 15
Here is what I remember still about X11 forwarding:

basically BOTH machines should have all packages for X11 installed on them. Also try a simpler program such as gedit or xclock for testing that it actually works.

as for command line do this first:
ssh -X

then run the graphical program for testing.

I suggest to do a test using windows/putty/xming combination to narrow the error to one of the two machines.

Also do you have .Xauthority in your home? I remember that a bad .Xauthority used to cause me a lot of headaches.
Old 10-26-2009, 04:02 PM   #5
Registered: Apr 2009
Distribution: debian gnu/linux
Posts: 798

Rep: Reputation: Disabled
#ssh -X firefox's password:
Error: no display specified
If im running a login-manager like gdm i`m not able to start an X-program as root "directly". I get the message bout no display being specified.Either i need sux or gksu/kdesu.
You sure that aint the main problem?

Mh, i just checked: with slim as login-manager it works (both following ways):
ssh -X
and directly:
ssh -X fluxbox


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Need help forwarding X11 via SSH buckwheat12 Linux - Networking 15 05-02-2007 03:08 PM
Need HELP SSH X11 Forwarding wylie1001 Linux - Software 2 04-11-2006 08:12 PM
X11 Forwarding over SSH all sorts of problems lucastic Linux - Networking 10 08-31-2004 08:34 PM
Problems with ssh and X11 forwarding Dabria Linux - General 5 02-13-2004 10:28 AM
ssh: x11 forwarding problems Halz Linux - Software 1 06-25-2002 03:27 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:46 AM.

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