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
In windows machine, remove the content of config file present in C:\Users{yourusername}.ssh
This worked well for me.
I just ran into this today and it was because the server I was trying to connect to was overloaded with processing. So it may be possible that the server is low on memory or CPU starved.
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.
If you are using a VPN, Turn it off and try to push again.
Disconnecting and reconnecting to the current network worked for me.
Make sure you are not connect to any kind of VPN.