kex_exchange_identification: Connection closed by remote hos


ssh -vT git@github.com
OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2
debug1: Reading configuration data C:\Users\xzb/.ssh/config
debug1: C:\Users\xzb/.ssh/config line 1: Applying options for github.com
debug1: Connecting to github.com [::1] port 443.
debug1: Connection established.
debug1: identity file C:\Users\xzb/.ssh/id_rsa type 0
debug1: identity file C:\Users\xzb/.ssh/id_rsa-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_for_Windows_8.1
kex_exchange_identification: Connection closed by remote host
ping github.com
Pinging github.com [::1] with 32 bytes of data:
Reply from ::1: time<1ms
Reply from ::1: time<1ms
Reply from ::1: time<1ms
Reply from ::1: time<1ms

我尝试ssh -vT git@github.com和ping github.com在我的终端,以上都是结果。有人能告诉我为什么吗?

Pinging github.com [::1]...

它看起来像"github.com"由于某种原因正在解析到本地主机地址,而您实际上正在尝试连接到本地系统。看看你是否有"github.com"在你的/etc/hosts文件中(显然这个文件将是c:WindowsSystem32Driversetchosts)。或者与你的本地网络管理员联系,看看他们是否正在做某种网络管理,有这种效果。

相关内容

最新更新