LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-12-2005, 11:16 PM   #1
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
Error forwarding X through SSH (FC4/Debian)


Hi guys, thanks for taking the time to have a look.

I have been running a Fedora Core 4 (2.6.14.-1.1637_FC4) workstation for a while now

I installed a Debian Sarge (2.6.8-2-686) server yesterday.

They are connected via ethernet to my router.

So far i have SSH, VNC and an NFS share all setup and working fine.

My problem is when i try x forwarding via SSH from the server to the client (FC 4 workstation).

i searched the forums and found http://www.linuxquestions.org/questi...+x+through+ssh

but trying that i get the error **CRITICAL** unable to open display

thus not allowing me to display server X apps on the client (which is the problem of this thread)

i have also done xhost + on the host to allow all x connections (what it's for?) and still nada.

Can anyone shed light on the error or a solution?

Yeah i know having VNC i can get around not forwarding through X but i like to tinker and try new things and this stands in my way

Thanks again
 
Old 11-13-2005, 05:17 PM   #2
julz_51
Member
 
Registered: Mar 2005
Location: France
Distribution: Gentoo, Debian, FC4
Posts: 40

Rep: Reputation: 15
What do you exactly do ?
The regular way is to launch ssh as an X client on the client host. For example launch the X server and xterm, invoke "ssh -X -l username debian_host" from xterm. Then at ssh prompt, launch the app you want on the server. Is that what you did ?
 
Old 11-13-2005, 05:26 PM   #3
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Original Poster
Rep: Reputation: 45
Yup and i get the same error as above
 
Old 11-13-2005, 07:01 PM   #4
julz_51
Member
 
Registered: Mar 2005
Location: France
Distribution: Gentoo, Debian, FC4
Posts: 40

Rep: Reputation: 15
Have you checked if X forwarding is enabled in the sshd config file of the debian machine ?
 
Old 11-13-2005, 07:16 PM   #5
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Original Poster
Rep: Reputation: 45
Ok thank you very much that fixed the problem.

I had changed a line in /etc/ssh/ssh_config to read
# ForwardX11 yes (note it's commented out too, duh!)

restarted ssh service and nada.

Took another look at the service i was restarting and it was the sshd

so i changed /etc/ssh/sshd_config to read

X11Forwarding yes

and it works

Cheers mate
 
  


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
SSH X forwarding krusty_lab AIX 10 01-02-2008 10:36 AM
SSH X forwarding djgerbavore Linux - Networking 1 11-17-2005 10:40 AM
X forwarding via SSH bd1308 Linux - Software 4 08-30-2005 08:13 PM
Port forwarding for ssh Adriaan Linux - Networking 1 03-08-2004 10:11 AM
ssh and X-forwarding Björneborg Linux - Networking 2 02-19-2004 11:50 AM

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

All times are GMT -5. The time now is 09:21 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
Open Source Consulting | Domain Registration