Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm trying to setup X11 forwarding on a server (CentOS 6.4), but it's not working.
On the client side (Windows), I've tried connecting both with XManager and using putty with xming, (which both work on other CentOS servers) but they fail with this one server. I can ssh fine, but I'm getting this error: "The remote SSH server rejected X11 forwarding requests."
On the server side, I have checked that 'X11Forwarding yes' has been uncommented in '/etc/ssh/sshd_config' and my iptables are accepting 'lo' and port '22'.
One strange thing that is happening is that the xhost command always returns: 'xhost: unable to open display ""'. I also checked to see if the $Display variable was defined and it is not.
I'm at a loss of what to do next and any help is appreciated. Thank you.
first thing before you get too far
6.4 6.5,6.6,and 6.7 are ALL unsupported
please upgrade to the ONLY supported version in the 6 series
CentOS 6.8
Code:
cat /etc/redhat-release
that NEEDS to be 6.8
there are no repos for 6.4 except the historical Vault
Ok, I can update the version, but I don't think this is the issue, since all the other servers I can connect to and forward X11 are the exact same old version.
Quote:
Originally Posted by michaelk
I am unfamiliar with xmanager but did you also configure x11 forwarding in PuTTy's X11 settings?
Yes, the X11 forwarding option in the putty settings is enabled and I know my settings work with other similar servers.
Quote:
Originally Posted by jpollard
Did you remember to restart the sshd service after making the changes?
Yes, even though X11 forwarding was already on in the sshd_config file, I still used the following just to be sure:
Stupid question but is a desktop running on that particular server?
Sorry, what do you mean by desktop? I do currently have an open VNC session tunneled through ssh on that server. It's running kde if that's what you mean.
Sorry, what do you mean by desktop? I do currently have an open VNC session tunneled through ssh on that server. It's running kde if that's what you mean.
I think Michael may be asking whether the Centos server has been set up to run X11 services. I believe the basic install covers CLI only.
[EDIT] sorry, just reread your response which answers this question. Please ignore
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.