I work at win7 and set up git server with sshd. I git --bare init myapp.git, and clone ssh://git@localhost/home/git/myapp.git in Cywgin
git --bare init myapp.git
ssh://git@localhost/home/git/myapp.git
I solved it after changing the ssh port & MaxStartups variable in /etc/ssh/sshd_config to ,
port 2244 MaxStartups 100
Then, restart the service
service sshd restart
If still it does not work, restart you system.