ssh_exchange_identification: Connection closed by remote host under Git bash

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

    In windows machine, remove the content of config file present in C:\Users{yourusername}.ssh

    This worked well for me.

    0 讨论(0)
  • 2021-01-30 09:25

    I just ran into this today and it was because the server I was trying to connect to was overloaded with processing. So it may be possible that the server is low on memory or CPU starved.

    0 讨论(0)
  • 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.

    0 讨论(0)
  • If you are using a VPN, Turn it off and try to push again.

    0 讨论(0)
  • 2021-01-30 09:27

    Disconnecting and reconnecting to the current network worked for me.

    0 讨论(0)
  • 2021-01-30 09:27

    Make sure you are not connect to any kind of VPN.

    0 讨论(0)
提交回复
热议问题