Connect to X11 Server Through ssh Using Cygwin/X on Windows

Assuming the server is setup correctly. Look at this question on StackExchange if you need help.

On the client (Windows machine) side:
  1. Install Cygwin[1] and Cygwin/X[2]
  2. Set $DISPLAY variable in your startup script (I put it in ~/.bashrc)
    # Add DISPLAY for X11 forwarding
    export DISPLAY=":0.0"
  3. Start a Cygwin Terminal and
    1. Start X Server
      startxwin &
    2. Connect to your server
      # -Y      Enables trusted X11 forwarding.
      ssh -Y ${server_to_connect}
    3. Now you can run the application on the server and the GUI will be shown in your Windows machine. You can test by xlog