ssh_exchange_identification: Connection closed by remote host under Git bash

后端 未结 26 2522
梦谈多话
梦谈多话 2021-01-30 08:57

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

26条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-30 09:24

    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

提交回复
热议问题