复制辅助文件

时间:2013-02-04 04:53:48

标签: git

我正在尝试克隆一些东西,但是我收到了权限错误,我已经使用rails installer here设置了git,所以不知道该怎么做。

Anderss-MacBook-Pro:tmp anderskitson$ sudo git clone git@github.com:mhartl/rails_tutorial_sublime_text.git
Cloning into rails_tutorial_sublime_text...
The authenticity of host 'github.com (207.97.227.239)' 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,207.97.227.239' (RSA) to the list of known hosts.
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
Anderss-MacBook-Pro:tmp anderskitson$

运行ssh-add -l <​​/ p>时,我也得到了这个输出

Anderss-MacBook-Pro:Packages anderskitson$ ssh-add -l
The agent has no identities.

ssh的内容

Anderss-MacBook-Pro:.ssh anderskitson$ ls
known_hosts
Anderss-MacBook-Pro:.ssh anderskitson$ 

1 个答案:

答案 0 :(得分:1)

本指南可以帮助您:https://help.github.com/articles/generating-ssh-keys

您需要生成SSH私有/公共密钥组合,并在尝试克隆之前将其添加到github。