need to enable this line in sshd_configX11Forwarding yes
X11Forwarding yes
and when login ssh use -X option
-X