I have set ForwardX11 yes in /etc/ssh/ssh_config which normally enables me to open GUI programs on CentOS5 by ssh -X server
But doing the same on CentOS6 I get
# firefox -no-remote
Error: no display specified
#
What could be wrong?
Update
Have tried the following
# firefox -no-remote
Error: no display specified
# echo $DISPLAY
# export DISPLAY=localhost:0.0
# echo $DISPLAY
localhost:0.0
# firefox -no-remote
Error: cannot open display: localhost:0.0
#
Update 2
~$ echo $DISPLAY
:0.0
~$ export DISPLAY=localhost:0.0
~$ ssh -X root@net2
[root@net2 ~]# xclock
Error: Can't open display:
[root@net2 ~]#