LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-21-2014, 10:01 PM   #1
niteshadw
Member
 
Registered: Sep 2002
Distribution: CentOS
Posts: 170

Rep: Reputation: 15
X11Forwarding - could not open display on headless server


Hello,

I'm trying to forward virt-manager running on a headless CentOS 6.5 server. The host has X11Forwarding yes and X11DisplayOffset 10 both uncommented in sshd_conf Also, the $DISPLAY variable on the headless server does not return anything. I'm guessing it's missing the display because when I execute the following command, I get the errors:

PHP Code:
ssh -X root@headless_srvr virt-manager
root
@headless_srvr's password: 
X11 forwarding request failed on channel 0
Traceback (most recent call last):
  File "/usr/share/virt-manager/virt-manager.py", line 383, in <module>
    main()
  File "/usr/share/virt-manager/virt-manager.py", line 286, in main
    raise gtk_error
RuntimeError: could not open display 

I was wondering how can I setup X11Forwarding over SSH from a headless server to a host running an OS with Gnome.

Thank you in advance!
 
Old 05-22-2014, 12:21 AM   #2
eklavya
Member
 
Registered: Mar 2013
Posts: 636

Rep: Reputation: 142Reputation: 142
Try to set
Quote:
X11DisplayOffset 10
as commented and
Quote:
X11UseLocalhost no
as uncommented.

Did you restart ssh daemon after making changes in sshd_confing?

If you are still facing problem, try to install following packages.
Quote:
yum install xorg-x11-xauth
 
1 members found this post helpful.
Old 05-22-2014, 09:05 PM   #3
niteshadw
Member
 
Registered: Sep 2002
Distribution: CentOS
Posts: 170

Original Poster
Rep: Reputation: 15
Hi,

Thanks for the reply. I set "X11UseLocalhost no", installed the package and restarted the service and now it works! Thank you! I'm not sure if it's the setting or the package but it works now!
 
  


Reply


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Remote X Server Can't Open Display markjuggles Linux - General 6 07-28-2017 04:36 PM
open the display of the server on my system unclesamcrazy Linux - Newbie 12 07-22-2013 04:23 PM
Not able to open display of remote server if client is user and server is root unclesamcrazy Linux - Newbie 16 07-22-2013 01:08 PM
X11forwarding sang_froid Linux - Security 5 04-29-2009 08:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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