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
For me this was caused by a limit on the number of concurrent ssh sessions. I added the two params below to /etc/ssh/sshd_config and then things worked.
echo 'MaxSessions 2000' >> /etc/ssh/sshd_config echo 'MaxStartups 2000' >> /etc/ssh/sshd_config service ssh restart