ssh_exchange_identification: Connection closed by remote host under Git bash

后端 未结 26 2576
梦谈多话
梦谈多话 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:25

    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.

提交回复
热议问题