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?