on cygwin-1.7.16 and 20120730 snapshot,
when trying to connect at running ssh server I have
$ ssh marco@127.0.0.1
ssh_exchange_identification: Connection closed by remote host
and /var/log/sshd.log reports:
--------------------------------------------------------------------
1231 [main] sshd (2860) E:\cygwin\usr\sbin\sshd.exe: *** fatal
error - cygheap base mismatch detected - 0x612708D0/0x6126F8D0.
This problem is probably due to using incompatible versions of the
cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version. The most recent version
*should*
reside in x:\cygwin\bin, where 'x' is the drive on which you have
installed the cygwin distribution. Rebooting is also suggested if you
are unable to find another cygwin DLL.
1 [main] sshd 4568 fork: child -1 - forked process 2860 died
unexpectedly, retry 0, exit code -1073741819, errno 11
4 [main] sshd (1488) E:\cygwin\usr\sbin\sshd.exe: *** fatal
error - cygheap base mismatch detected - 0x612708D0/0x6126F8D0.