ssh_exchange_identification: Connection closed by remote host under Git bash

后端 未结 26 2586
梦谈多话
梦谈多话 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条回答
  •  猫巷女王i
    2021-01-30 09:21

    if hostname does not work, try IP address.

    This is going on right now so I have to say. I try to ssh with my host name and it does not work

    ssh root@host.example.net
    

    this gives the error "ssh_exchange_identification: Connection closed by remote host"

    this USED to work one hour back.

    BUT, and here is the interesting part, the IP address works!

    ssh root@192.168.0.100
    

    (of course the actual IP address is different)

    Go figure!

提交回复
热议问题