github push本地文件失败

按照教程生成密匙后粘贴到网页端,然后ssh -T git@github.com测试显示22端口超时,怀疑是墙的问题,测试ping不通,telnet不通,后改为443端口,在hosts文件中添加192.30.253.112 ssh.gitHub.com后能ping通,公匙也添加成功,
接着ssh -T -v git@github.com测试却出现如下错误

C:\Users\ELI\Documents\GitHub\mooc [master]> ssh -T -v git@github.com
OpenSSH_7.3p1, OpenSSL 1.0.2j  26 Sep 2016
debug1: Reading configuration data /c/Users/ELI/.ssh/config
debug1: /c/Users/ELI/.ssh/config line 1: Applying options for github.com
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 1: Applying options for *
debug1: /etc/ssh/ssh_config line 5: Applying options for github.com
debug1: Connecting to ssh.github.com [192.30.253.112] port 443.
debug1: Connection established.
debug1: identity file /c/Users/ELI/.ssh/id_rsa type 1
debug1: key_load_public: No such file or directory
debug1: identity file /c/Users/ELI/.ssh/id_rsa-cert type -1
debug1: identity file /c/Users/ELI/.ssh/github_rsa type 1
debug1: key_load_public: No such file or directory
debug1: identity file /c/Users/ELI/.ssh/github_rsa-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.3
ssh_exchange_identification: Connection closed by remote host

git push -u origin master后出现如下错误

fatal: unable to access 'https://github.com/ELIDHQ/mooc.git/': Proxy CONNECT aborted

客户端push显示如下错误图片描述

ssh -T git@github.com测试后显示如下
ssh_exchange_identification: Connection closed by remote host
请问如何解决?

阅读 2.6k
评论 更新于 2016-12-03
    6 个回答

    装个github桌面版客户端吧,什么操作就用客户端来做,还不会出错

    评论 赞赏 2016-12-02

      git的浅度用户不必要用命令行,有这精力不如学点别的。

      评论 赞赏 2016-12-08

        重启路由器,清理路由缓存!IE代理检查关闭

        评论 赞赏 2016-12-02
          betacat
          • 1.3k

          github应该是不需要翻墙的,如果你是在公司内网的话有可能是公司的防火墙或者代理服务器的原因。
          我曾经遇到过类似问题,我公司的代理服务器还需要提供用户名和密码才可能访问外围。

          评论 赞赏 2016-12-08

            先status,commit

            评论 赞赏 2016-12-08
              soul
              • 199

              貌似是网络问题,先clone一个纯净的再提交测试下!

              评论 赞赏 2016-12-08
                撰写回答

                登录后参与交流、获取后续更新提醒