After connecting to remote machine using SSH, try:

tux@remote:~$ export LIBGL_ALWAYS_INDIRECT=y
tux@remote:~$ glxgearsit worked for me :-)