按照教程生成密匙后粘贴到网页端,然后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
请问如何解决?
装个github桌面版客户端吧,什么操作就用客户端来做,还不会出错