其他问题 ssh pull and push failed

沈新波 · 2016年01月25日 · 最后由 沈新波 回复于 2016年01月25日 · 224 次阅读

git push origin development


ssh_exchange_identification: Connection closed by remote host fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists. ShendeMacBook-Pro:hxjb-wap-old xinbo$ ssh -vT git@git.coding.net OpenSSH_6.9p1, LibreSSL 2.1.8 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 20: Applying options for * debug1: /etc/ssh/ssh_config line 102: Applying options for * debug1: Connecting to git.coding.net [222.186.133.56] port 22. debug1: Connection established. debug1: identity file /Users/xinbo/.ssh/id_rsa type 1 debug1: key_load_public: No such file or directory debug1: identity file /Users/xinbo/.ssh/id_rsa-cert type -1 debug1: key_load_public: No such file or directory debug1: identity file /Users/xinbo/.ssh/id_dsa type -1 debug1: key_load_public: No such file or directory debug1: identity file /Users/xinbo/.ssh/id_dsa-cert type -1 debug1: key_load_public: No such file or directory debug1: identity file /Users/xinbo/.ssh/id_ecdsa type -1 debug1: key_load_public: No such file or directory debug1: identity file /Users/xinbo/.ssh/id_ecdsa-cert type -1 debug1: key_load_public: No such file or directory debug1: identity file /Users/xinbo/.ssh/id_ed25519 type -1 debug1: key_load_public: No such file or directory debug1: identity file /Users/xinbo/.ssh/id_ed25519-cert type -1 debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_6.9 ssh_exchange_identification: Connection closed by remote host

共收到 10 条回复

麻烦请立即解决

Hi ,请提供下 $ ping git.coding.net、$ traceroute git.coding.net 的结果及您目前使用的 DNS

PING 1st.appat57.ourglb0.com (222.186.133.56): 56 data bytes
64 bytes from 222.186.133.56: icmp_seq=0 ttl=52 time=10.550 ms
64 bytes from 222.186.133.56: icmp_seq=1 ttl=52 time=13.132 ms
64 bytes from 222.186.133.56: icmp_seq=2 ttl=52 time=16.057 ms
64 bytes from 222.186.133.56: icmp_seq=3 ttl=52 time=11.314 ms
64 bytes from 222.186.133.56: icmp_seq=4 ttl=52 time=12.273 ms
64 bytes from 222.186.133.56: icmp_seq=5 ttl=52 time=11.498 ms
64 bytes from 222.186.133.56: icmp_seq=6 ttl=52 time=10.922 ms
64 bytes from 222.186.133.56: icmp_seq=7 ttl=52 time=11.059 ms
64 bytes from 222.186.133.56: icmp_seq=8 ttl=52 time=11.089 ms
64 bytes from 222.186.133.56: icmp_seq=9 ttl=52 time=12.009 ms
64 bytes from 222.186.133.56: icmp_seq=10 ttl=52 time=11.518 ms
^C
--- 1st.appat57.ourglb0.com ping statistics ---
11 packets transmitted, 11 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 10.550/11.947/16.057/1.468 ms

你这个看起来是个例,看起来像是 ssh 协议不匹配导致的,最近是否有升级过 ssh client 或者有修改过 ssh client 配置?
你把 ssh -vvvT git@git.coding.net 结果发来看看。

OpenSSH_6.9p1, LibreSSL 2.1.8
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 20: Applying options for *
debug1: /etc/ssh/ssh_config line 102: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to git.coding.net [183.136.209.89] port 22.
debug1: Connection established.
debug1: identity file /Users/xinbo/.ssh/id_rsa type 1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/xinbo/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/xinbo/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/xinbo/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/xinbo/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/xinbo/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/xinbo/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/xinbo/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.9
ssh_exchange_identification: Connection closed by remote host

@沈新波 我联系下供应商,看看是否是他们的问题,你可以先修改 /etc/hosts ,将 git.coding.net 指到 180.150.177.106 看看是否能成功

现在可以的

你好,你的 IP 地址是否方便告知下,我们好排查问题

116.228.201.227

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册
相关话题