Cannot open display - gedit - from SSH login
Cannot open display - gedit - from SSH login
Hi all,
We have installed the 7.1.1503_core version of CentOS. When logging in remotely through SSH (ssh -y narain@192.168.x.x), and typing in gedit, throws the following error:
** (gedit:2290): WARNING **: Could not open X display
(gedit:2290): Gtk-WARNING **: cannot open display: 192.168.x.x:17.0 //the x.x is intentionally replaced
I have verified the installation of xorg-x11-xauth, and the server SSH config file /etc/ssh/sshd_config includes the following:
#GatewayPorts no
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes
#PermitTTY yes
I have no clue on the next step to try to resolve this issue and would greatly appreciate your help!
Many thanks!
We have installed the 7.1.1503_core version of CentOS. When logging in remotely through SSH (ssh -y narain@192.168.x.x), and typing in gedit, throws the following error:
** (gedit:2290): WARNING **: Could not open X display
(gedit:2290): Gtk-WARNING **: cannot open display: 192.168.x.x:17.0 //the x.x is intentionally replaced
I have verified the installation of xorg-x11-xauth, and the server SSH config file /etc/ssh/sshd_config includes the following:
#GatewayPorts no
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes
#PermitTTY yes
I have no clue on the next step to try to resolve this issue and would greatly appreciate your help!
Many thanks!
Re: Cannot open display - gedit - from SSH login
Do you have X running on the machine that you are ssh'ing from?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Re: Cannot open display - gedit - from SSH login
It's supposed to be ssh -Y (or ssh -X). Note the uppercase letter.Narain wrote:Hi all,
We have installed the 7.1.1503_core version of CentOS. When logging in remotely through SSH (ssh -y narain@192.168.x.x), and typing in gedit, throws the following error:
CentOS Forum FAQ
Re: Cannot open display - gedit - from SSH login
Also, ssh X11 forwarding DISPLAY variables are invariably of the format localhost:10.0 (the numbers may vary) and do not use ip addresses. Are you attempting to override the automatic setting?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Re: Cannot open display - gedit - from SSH login
Hi Trevor and toracat,
Thanks much for your prompt responses.
When I start a new session, I get the DISPLAY format 10.0., please see below:
Thanks much for your prompt responses.
I use MobaXterm on Windows 7, have also tried SSH through Putty - the same issue. (Just for information; I am able to connect to other machines running CentOS 6, through MobaXterm).TrevorH wrote:Do you have X running on the machine that you are ssh'ing from?
Sorry for the typo in my question, I use ssh -Y narain@192.168.x.x, also tried with ssh -XC narain@192.168.x.x - the same issue persists.toracat wrote:It's supposed to be ssh -Y (or ssh -X). Note the uppercase letter.
No, I am not attempting to override the setting; I just exported $DISPLAY with the IP address for one session to test, based on a troubleshooting step I read on the web. It did not work.TrevorH wrote:Also, ssh X11 forwarding DISPLAY variables are invariably of the format localhost:10.0 (the numbers may vary) and do not use ip addresses. Are you attempting to override the automatic setting?
When I start a new session, I get the DISPLAY format 10.0., please see below:
Code: Select all
[narain@192.168.x.x ~]$ gedit
** (gedit:22417): WARNING **: Could not open X display
(gedit:22417): Gtk-WARNING **: cannot open display: localhost:10.0
Re: Cannot open display - gedit - from SSH login
I've never heard of mobaxterm but putty is not an X server, it's just a terminal emulator. With putty you need a separate X server like xming or the cygwin X server both installed and running.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Re: Cannot open display - gedit - from SSH login
Thanks. Without using MobaXterm or Putty, if I login from another machine running CentOS 6, to the machine in question, I get the same error - "cannot open the X display".TrevorH wrote:I've never heard of mobaxterm but putty is not an X server, it's just a terminal emulator. With putty you need a separate X server like xming or the cygwin X server both installed and running.
Re: Cannot open display - gedit - from SSH login
Hi all,
I still have no success on resolving this issue, and am blocked - do I have to re-install some packages to make this work?
Many thanks in advance for your time.
I still have no success on resolving this issue, and am blocked - do I have to re-install some packages to make this work?
Many thanks in advance for your time.
-
- Posts: 41
- Joined: 2015/10/21 01:09:22
- Location: West Java, Indonesia
Re: Cannot open display - gedit - from SSH login
What do you mean blocked ?Narain wrote:Hi all,
I still have no success on resolving this issue, and am blocked - do I have to re-install some packages to make this work?
Many thanks in advance for your time.
make sure ssd run or not in server using nmap ( port 22 )
Code: Select all
$ nmap serverhostname
Code: Select all
$ xhost +
$ export DISPLAY="192.168.x.x:0.0" # your own ip
$ ssh -X yourserver
$ gedit
-- Documentation is part of science