我正在尝试 git clone 某些东西,但出现权限错误,我在这里使用 rails 安装程序设置了 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 时我也得到了这个输出
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$