To add to the previous excellent answers (setting up ~/.ssh/config~/.ssh/config and checking to see if the DISPLAYDISPLAY environment variable is set on the client, setting up /etc/ssh/sshd_config/etc/ssh/sshd_config and installing xauthxauth on the server), also make sure xtermxterm is installed on the client, e.g.
sudo apt-get install xterm