Download your favorite Linux distribution at LQ ISO.
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 08-07-2009, 05:09 PM   #1
LQ Newbie
Registered: Jul 2009
Posts: 14

Rep: Reputation: 0
unable to setup Remote DISPLAY using ssh

I am working on a MAC OS and logging into an X11 machine. I am able to log in and access the machine however I cannot access remote DISPLAY. I need to open up an image using ds9 and am unable to do so.

I have tried: ssh -X

but then when I type ds9 at the prompt I get the following error msg.

connect port 6000: Connection refused
X connection to localhost:11.0 broken (explicit kill or server shutdown).

Could someone please tell me how to setup remote display?

Old 08-08-2009, 09:47 AM   #2
Registered: Dec 2006
Location: Oregon
Distribution: RHEL[45] {x86,x86_64}, Debian "testing" {x86,x86_64}
Posts: 219

Rep: Reputation: 36
Originally Posted by mmateen View Post
I am working on a MAC OS and logging into an X11 machine.
For reference, here is the fragment of the ssh man page from Debian Linux (and might or might not match the command-line syntax of your MAC OS ssh client):
-X Enables X11 forwarding. This can also be specified on a per-host basis in a configuration file.

X11 forwarding should be enabled with caution. Users with the ability to bypass file permissions on the remote host (for
the userís X authorization database) can access the local X11 display through the forwarded connection. An attacker may
then be able to perform activities such as keystroke monitoring.

For this reason, X11 forwarding is subjected to X11 SECURITY extension restrictions by default. Please refer to the ssh -Y
option and the ForwardX11Trusted directive in ssh_config(5) for more information.

-Y Enables trusted X11 forwarding. Trusted X11 forwardings are not subjected to the X11 SECURITY extension controls.
And later on:
ssh(1) obtains configuration data from the following sources in the following order:

1. command-line options
2. userís configuration file (~/.ssh/config)
3. system-wide configuration file (/etc/ssh/ssh_config)
Try the following:
  1. Try adding the -Y switch when you invoke ssh on the local machine (see above).
  2. Your ssh client may or may not use a local (local to your HOME directory on the local machine) configuration file that may or may not override command-line directives. Check to see that it is correct.
  3. Ditto #2 above for the global setting.
  4. Check to see what the network configuration is of the remote machine. Are some ports, such as 6000, blocked for some reason? If so, talk to their admins to get it corrected, since there should not be any reason to block those ports.
Good luck,
Old 08-09-2009, 12:02 PM   #3
LQ Newbie
Registered: Jul 2009
Posts: 14

Original Poster
Rep: Reputation: 0
Thanks for your reply. Using the following command worked:

ssh -Y -l username remote_hostname


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 unable to connect remote pc satimis Linux - Networking 11 07-29-2009 08:46 PM
Fedora 10/unable to ssh out from box to remote host (SSH within LAN ok) huskeypm Linux - Networking 3 04-14-2009 07:37 PM
Redhat9 ssh Remote X Display Can't Open under windows xp dreamcarrior Linux - Networking 1 10-05-2008 12:21 AM
Remote login with SSH, but display on remote computer. brodin Linux - Software 3 09-09-2007 03:01 AM
matlab on remote linux server... using ssh .. x display shyamsg Linux - Networking 1 05-01-2004 04:01 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:32 PM.

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