I am using ubuntu 12.04, and I am trying to ssh to log into a remote server which is also running ubuntu 12.04.
I am using "ssh -X ". I can log into the remote server smoothly, but cannot use the visual/graphical mode to open an application with GUI.
I think the problem lies in this server itself. Because I can use "ssh -X" to run GUI when connecting to another remote server. But I am not sure how to configure it to make it work.
echo $DISPLAY returns blank. Using grep X11 on /etc/ssh/sshd_config file returns:
➜ ~ cat /etc/ssh/sshd_config | grep X11
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost no
I have read the following posts, but the problem is still unsolved,
gedit "cannot open display" , on remote computer , using ssh - Ubuntu 12.04
Problem with X can not open display while ssh from ubuntu 13.04 to centos servers
Hope to get help from you. Thank you very much!
DISPLAY
variable, what doesecho $DISPLAY
show on your server login? Do you have root on the server, are you able to look into and/or edit the/etc/ssh/sshd_config
file on the server? – Michael Miller Jun 16 '14 at 21:40(gnome-open:24569): GConf-WARNING : Client failed to connect to the D-BUS daemon: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11 GConf Error: No D-BUS daemon running
(gedit:24572): WARNING: Command line `dbus-launch --autolaunch=d351af25c7aa104bf2c6af1600000007 --binary-syntax --close-stderr' exited with non-zero exit status 1: Autolaunch error: X11 initialization failed. Cannot open display
– user2728388 Jun 17 '14 at 02:56GConf Error: No D-BUS daemon running
No protocol specified
** (gedit:27330): WARNING **: Command line `dbus-launch --autolaunch=d351af25c7aa104bf2c6af1600000007 --binary-syntax --close-stderr' exited with non-zero exit status 1: No protocol specified. Autolaunch error: X11 initialization failed.
– user2728388 Jun 17 '14 at 12:03