ssh_exchange_identification: Connection closed by remote host under Git bash

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

    Hi I fix this on one vps service, restarting it, other way is if you have a console from your service o any other way to run a command in your remote machine the only command you must run is restart the ssh daemon and enjoy!! :P

    /etc/init.d/ssh restart
    
    0 讨论(0)
  • 2021-01-30 09:29

    Got the same error too when connecting to GitHub with ssh as I move from one workplace to another. according to my situation, it seems that dns servers of different networks may get various ip address of github and the known_hosts file not identify it when changes happened. So change dns or switch back original network may work.

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