First make sure that your binary distro of ssh has X11 forwarding support.
Commonly it will. But on very old systems you must upgrade it or rebuild the source tree removing ant X11 disabling funtions.
On the server side, you must enable X11 forwarding by editting the
/etc/ssh/sshd_config file and adding a line
On client side we must inform ssh client to give that support so that we must edit either
/etc/ssh/ssh_config or the user own ssh config file
~/.ssh/config file by adding a line:
If you don't want to use X11 forwarding by default at the client side, you can also turn on forwarding with
ssh -X username@hostname