Recently I’ve been in an awkward situation with ssh and X11 forwarding, where ssh using the classic -Y (or -X) switch wasn’t working (DISPLAY was not set):
[andrea@duncan ~]$ ssh -Y root@vladimir
root@vladimir's password:
Last login: Sat Apr 12 23:30:09 2008 from ***
[root@vladimir ~]# echo $DISPLAY
[root@vladimir ~]#
If you are experiencing the same and your sshd_config looks fine (which means TCP and X11 forwarding is already enabled) then the answer is missing xauth!
On RedHat yum install xauth will do the trick