http://bbs.gsmcn.cn/thread-2474-1-1.html
偶然编译中文recovery时候遇到了一个错误.后来尝试了一下.解决了,在这里记录分享一下 root@htcdev-VirtualBox:~/Rec_folder# git clone git@github.com:APAR1992/CWM_Recovery_v6037_cn.git Cloning into 'CWM_Recovery_v6037_cn'... The authenticity of host 'github.com (192.30.252.131)' can't be established. RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'github.com,192.30.252.131' (RSA) to the list of known hosts. Permission denied (publickey). fatal: The remote end hung up unexpectedly root@htcdev-VirtualBox:~/Rec_folder# 报错看来是跟publickey有关系 首先来github的解决中心来看 跟着教程走 https://help.github.com/articles/generating-ssh-keys 这里ssh-keygen -t rsa -C "Your@Your.com" 替换为你的邮箱地址,别的都为空,直接回车,就会提示你生成完毕 紧接着执行 然后系统会提示你 然后我们去github保存你的ssh key 登录github.com --AccountSetting--ssh 点击Add 然后输入我们刚才计算的key 这里有个简单的复制方法 打开终端 输入 然后执行 直接在key那里右键粘贴 Title随意写。。。 到这里 我们的ssh key 就算添加完毕了 现在去同步下代码看看,终于可以同步了!~ 测试环境 ubuntu12.04 |