github错误待解决

 
  1. 在主项目上增加分支,实现展示项目demo页面。
首先在主分支上增加了gh-pages
2、在本地通过git命令,把主分支克隆到本地
git clone https://github.com/xurx/xurx.github.io.git并进入克隆仓库的本地文件夹
 
3、切换分支git checkout gh-pages
4、删除本地的克隆文件,并替换成项目的demo文件
git add .
git commit -m "说明性文字"
git remote add origin git@github.com:xurx/xurx.github.io.git
git push -u origin master
5、最后在进行一下相关设置
其他一切正常,在进行推送的时候出现此错误:
$ git push -u origin master
ssh_exchange_identification: read: Software caused connection abort
fatal: Could not read from remote repository.
 
Please make sure you have the correct access rights
and the repository exists.
 查找资料之后重新生成了ssh key,并在github的设置里进行了相应配置依然有这个错误。
 通过命令号:ssh git@github.com -vT
跟踪断点日志如下:

$ ssh git@github.com -vT
OpenSSH_7.1p1, OpenSSL 1.0.2d 9 Jul 2015
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to github.com [192.30.253.113] port 22.
debug1: Connection established.
debug1: identity file /c/Users/XuRunxiao/.ssh/id_rsa type 1
debug1: key_load_public: No such file or directory
debug1: identity file /c/Users/XuRunxiao/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /c/Users/XuRunxiao/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /c/Users/XuRunxiao/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /c/Users/XuRunxiao/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /c/Users/XuRunxiao/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /c/Users/XuRunxiao/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /c/Users/XuRunxiao/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.1
ssh_exchange_identification: read: Software caused connection abort

 

 

posted @ 2017-02-09 17:37  orange16  阅读(1038)  评论(0)    收藏  举报