Share your knowledge at the LQ Wiki.
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 01-18-2011, 01:50 PM   #1
Registered: Jan 2010
Location: india/pune
Distribution: Arch Fedora20
Posts: 126

Rep: Reputation: 18
Question issue tunneling X using ssh

I have a LAN
Suppose I have two computers both CentOS on them say A,B
I can ssh from A to B
I will type firefox on A and want it to display on B
I tried -
1) ssh -x ....
export DISPLAY=....:0.0
it says unable to open display ....:0.0

thanks in advance !!
Old 01-18-2011, 02:29 PM   #2
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,181
Blog Entries: 15

Rep: Reputation: 1289Reputation: 1289Reputation: 1289Reputation: 1289Reputation: 1289Reputation: 1289Reputation: 1289Reputation: 1289Reputation: 1289
ssh -x (lower case) disables X11 forwarding.

ssh -X (upper case) enables X11 forwarding.

When you do the -X it automatically sets DISPLAY to the one it came from. You should not try to set it yourself. Remember it's "DISPLAY" location is actually the tunnel - not where it would normally be if it were a straight X Windows location. The idea is that you don't have to open ports in the 6000 range and allow relatively insecure X Windows traffic over that. Instead it goes over your encrypted ssh port (by default port 22).
Old 01-22-2011, 10:17 AM   #3
Registered: Jan 2010
Location: india/pune
Distribution: Arch Fedora20
Posts: 126

Original Poster
Rep: Reputation: 18
I tried ssh -X ...
and got DISPLAY as localhost:10.0
but still it opens the firefox(or any) window in A


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 tunneling issue. buckwheat12 Linux - Networking 2 01-03-2007 09:34 AM
tunneling thru ssh c9876543210 Linux - Networking 1 07-21-2005 01:45 AM
X tunneling with SSH phekno Linux - Networking 3 05-31-2005 11:43 AM
SSH tunneling X AzZuM Linux - Security 3 11-27-2004 02:59 AM
SSH Tunneling danny_beta_read Linux - Networking 0 06-10-2004 03:43 PM > Forums > Linux Forums > Linux - Newbie

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