I'm trying to get Emacs to work over SSH under Windows (both client and server). With Emacs 23.2 (downloaded from the GNU FTP), SUA as SSH server and Bitvise as SSH client, when I run './emacs.exe -nw' I get "standard input is not a tty".

It says here that this also doesn't work on a cygwin server, and here is an old thread (2000) discussing the same (or very similar) issue.

When using Exceed all you have to do is mark a checkbox "Enable X11 forwarding" in your Putty when connecting to ssh. Then simply type "emacs" while in console and you will get the Emacs running in a GUI in your Windows. I did not use Xming but I suspect it should work in a similar way.