LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: 0
SSH: X11 forwarding problems


Hello,

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 root@xxx.xxx.xxx.xxx firefox
root@xxx.xxx.xxx.xxx's password:
Error: no display specified

On the same box I have the following DISPLAY defined

#echo $DISPLAY
:0.0

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.

Fred
 
Old 10-25-2009, 09:20 AM   #2
devbro
Member
 
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, 04:38 PM   #3
fdubru
LQ Newbie
 
Registered: Oct 2009
Posts: 2

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

Rep: Reputation: 15
Here is what I remember still about X11 forwarding:
http://www.hackinglinuxexposed.com/a.../20040705.html

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 root@xxx.xxx.xxx.xxx

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, 05:02 PM   #5
j1alu
Member
 
Registered: Apr 2009
Distribution: debian gnu/linux
Posts: 798

Rep: Reputation: Disabled
Quote:
#ssh -X root@xxx.xxx.xxx.xxx firefox
root@xxx.xxx.xxx.xxx'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 root@xxx.xxx.xxx.xxx
passwd
fluxbox
and directly:
ssh -X root@xxx.xxx.xxx.xxx fluxbox
 
  


Reply


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


All times are GMT -5. The time now is 04:54 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration