git clone --early EOF

出现这个问题可能须要从新检查如下方面:git

1. Android studio Git 的安装地址:  ..../Git/cmd/git.exegithub

记得在环境变量 --Path 中进行配置: ,..../Git/cmdssh

2. ssh 链接 githubide

进入 git 的安装目录下右键运行 Git_Bash,而后按照下面博客进行操做测试

http://blog.csdn.net/binyao02123202/article/details/20130891spa

3. 在输入 $ ssh -T git@github.com 命令测试 SSH KEY 时,若是出现如下错误:.net

no such identity: /c/Users/Administrator.PC-201608030926/.ssh/id_rsa.github:blog

须要在 C:\Users\Administrator.PC-201608030926\.ssh 目录下添加 config 文件(若是存在的话直接修改)ip

在 config 文件中添加如下内容(id_rsa 为所生成的 SSH Key 文件名):get

  Host github.com www.github.com
      IdentityFile ~/.ssh/id_rsa

  Host git.company.com
      IdentityFile ~/.ssh/id_rsa

出现 Permission denied (publickey),是因为多 SSH Key 致使的,也能够经过以上方法设置

4. 将 SSH Key 添加到 github 上

http://blog.csdn.net/vipzjyno1/article/details/22098621

5. ssh-add ~/.ssh/rsa 时报错:Could not open a connection to your authentication agent

先执行  eval `ssh-agent`  (是~键上的那个`) 再执行 ssh-add ~/.ssh/rsa成功ssh-add -l 就有新加的rsa了

相关文章
相关标签/搜索