One more tip: make sure your sshd on your remote machine is configured to only accept protocol version 2 (the Protocol line in your /etc/ssh/sshd_config). I was enabling both versions 1 and 2 and was unable to do X forwarding. But when I cut it back to only version 2, it magically started working.