LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 08-16-2014, 10:49 AM   #1
devinmcelheran
Member
 
Registered: Jan 2009
Location: Ontario, Canada
Distribution: Arch Linux
Posts: 145

Rep: Reputation: 16
SSH: Cannot Open Display


Hey, I just setup a home server for files and media, so on, but I can't seem to get X11 forwarding setup. At first DISPLAY wasn't being set, so I put this into my .bashrc
Code:
if [ ! $DISPLAY ] ; then
    if [ "$SSH_CLIENT" ] ; then
        export DISPLAY=`echo $SSH_CLIENT|cut -f1 -d\ `:0.0
    fi
fi
Now I get what I believe to be the proper DISPLAY variable, but I still get the same error. I've seen all sorts of "solutions" to what seems to be the same problem. I have 'X11Forwarding yes' in my /etc/ssh/sshd_config file, and I have 'AddressFamily any' as well because apparently disabling IPv6 can break X11 forwarding. At this point, I'm think that it could be that I'm ssh-ing from a Mac(10.10 Yosemite, OpenSSH_6.2p2), but I've done it before, so I'm really not sure.


EDIT: It turns out it wasn't a server side issue, it was client side. Mac OS X Yosemite doesn't actually come with an X Server, it just comes with a dummy icon that when you click it brings you to the page to install XQuartz. Once I did that, everything worked fine.

Last edited by devinmcelheran; 08-16-2014 at 11:00 AM. Reason: Resolved
 
Old 08-16-2014, 01:20 PM   #2
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
Great.

Had to post this so that the thread would stop coming up in the "unread" list.

Good work though.
 
  


Reply

Tags
debian, ssh, x11 forwarding



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
X-forwarding in slack over SSH - unable to open display Old_Fogie Slackware 9 08-04-2012 03:01 PM
[SOLVED] ssh -X Cannot open display orcaja Linux - Networking 13 05-14-2012 12:13 PM
can not open display through ssh SuperDude123 Linux - Newbie 3 03-13-2009 01:23 AM
application server cannot open display via SSH mynameisflorian Linux - Server 3 01-22-2009 02:14 PM
open application in display from ssh maginotjr Linux - Server 6 03-08-2008 09:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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