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
Simple server reboot solved the problem for me. Try hard reboot , if dont work after soft reboot.
Please use Port 7999 and Try. it will work
For me, the issue was that there was a proxy set in /etc/ssh/ssh_config and it was down, solved the issue by whitelisting the remote git IP and removing the proxy line.
Hope this helps someone.
I had this problem today and I realize that I was connected to 2 differente networks (LAN and WLAN), I solved it just disconnecting the cable from my Ethernet adapter. I suppose that the problem is caused because the ssh key is tied with the MAC address of my wireless adapter. I hope this helps you.
if hostname does not work, try IP address.
This is going on right now so I have to say. I try to ssh with my host name and it does not work
ssh root@host.example.net
this gives the error "ssh_exchange_identification: Connection closed by remote host"
this USED to work one hour back.
BUT, and here is the interesting part, the IP address works!
ssh root@192.168.0.100
(of course the actual IP address is different)
Go figure!
You can get "ssh_exchange_identification: Connection closed by remote host" if your sshd
service is not operational!
If you have access to the server check you have the sshd
service running with:
ps aux | grep ssh
and check it is listening on port 22:
netstat -plant | grep :22
more details here