Ssh_exchange_identification: Connection closed by remote host

gitssh

debug1: Connection established.
debug1: identity file /home/DAMS/.ssh/id_rsa type 1
debug1: identity file /home/DAMS/.ssh/id_rsa-cert type -1
debug1: identity file /home/DAMS/.ssh/id_dsa type -1
debug1: identity file /home/DAMS/.ssh/id_dsa-cert type -1
ssh_exchange_identification: Connection closed by remote host

Hello, this one is different. Nothing missing or anything. I am using cygwin and it just stops when I do git push production on my server. This is usually ok, but I wonder why it is stopping connections.

Best Answer

I still don't understand the issue, but this worked for me:

echo "sshd:ALL" >> /etc/hosts.allow 

Depending on your system, you may need to sudo this.