ssh_exchange_identification: Connection closed by remote host under Git bash

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

    Remove any config in ~/.ssh/config or other ssh config places which will disallow it to reach to Github servers

    In my case it was below config, and I wasn't connected to VPN.

    Host *
      ProxyJump 10.0.0.50 
    

    Note :- If I am connected to VPN, This config would mean git clone or any git operation will be send via VPN which might be slow depending on type of VPN we are using.

提交回复
热议问题