I've been using openssh provided by http://www.mls-software.com/opensshd.html on windows 7 ultimate, and discovered the problem following the instructions to generate keys for github on https://help.github.com/articles/generating-ssh-keys.
If I generate the keys and then try to ssh localhost on the same machine, the banner displays but immediately I get "Connection closed by 127.0.0.1". However, if remove the keys from home/.ssh directory and try to ssh localhost on again, it works and prompts me for my password as it did before generating the keys. With this, I've deducted that the keys are relate to the cause of the server closing the connection.
I've tried running opensshd in debug mode, and it works as expected without closing. It seems this problem happens when I try to start opensshd as a service like normal (using the command prompt and typing 'net start opensshd' or by starting it via Windows Services)
What's causing this?
Edited by phantom, 19 March 2014 - 04:05 AM.