LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 08-07-2009, 05:09 PM   #1
mmateen
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 remotemachine.edu

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

connect remotemachine.edu 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?

thanks,
 
Old 08-08-2009, 09:47 AM   #2
bgoodr
Member
 
Registered: Dec 2006
Location: Oregon
Distribution: RHEL[567] x86_64, Ubuntu 17.10 x86_64
Posts: 221

Rep: Reputation: 36
Quote:
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):
Quote:
-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:
Quote:
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,
bgoodr
 
Old 08-09-2009, 12:02 PM   #3
mmateen
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
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:28 PM.

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