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 03-12-2009, 03:46 PM   #1
Registered: Nov 2008
Posts: 158

Rep: Reputation: 30
can not open display through ssh

When I try to run firefox, I get the following

user@box:~$ firefox

(firefox-bin:8344): Gtk-WARNING **: cannot open display:
Old 03-12-2009, 04:26 PM   #2
Registered: Mar 2007
Location: Plymouth, UK
Distribution: Fedora Core, RHEL, Arch
Posts: 342

Rep: Reputation: 38
Try doing

ssh -X hostname
Old 03-12-2009, 05:45 PM   #3
Registered: Nov 2008
Posts: 158

Original Poster
Rep: Reputation: 30
I did, but once I'm logged in, I got those messages.
Old 03-13-2009, 01:23 AM   #4
Registered: Jul 2008
Location: Orange County
Distribution: Ubuntu/Debian, CentOS, RHEL, FreeBSD, OS X
Posts: 75

Rep: Reputation: 19
I had this same issue and it worked by adding the -Y option when initiating the ssh connection.

ssh -X hostname -Y
note that you have enable X11 forwarding on the ssh server in order for this to work.


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
X-forwarding in slack over SSH - unable to open display Old_Fogie Slackware 9 08-04-2012 03:01 PM
application server cannot open display via SSH mynameisflorian Linux - Server 3 01-22-2009 02:14 PM
Redhat9 ssh Remote X Display Can't Open under windows xp dreamcarrior Linux - Networking 1 10-05-2008 12:21 AM
open application in display from ssh maginotjr Linux - Server 6 03-08-2008 09:25 AM
Passwordless SSH with SSH commercial server and open ssh cereal83 Linux - General 7 04-18-2006 12:34 PM > Forums > Linux Forums > Linux - Newbie

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