我有一个基于Linux的Amazon AMI,它包含一个Git存储库。我想git clone
这个存储库到我的本地OSX机器(它也安装了Git)。Git克隆失败
存储库位于/home/ec2-user/my_test_repo
的亚马逊盒子上。 my_test_repo
目录的内部是.git
目录。
在我的OSX机器上,我可以成功通过SSH连接到主机为ec2-user
的机器,我可以执行大量的bash命令。所以,我知道SSH的作品。
git clone ssh://[email protected]/home/ec2-user/my_test_repo.git
我收到以下错误信息:
Cloning into 'my_test_repo'...
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
任何想法,我在做什么错在这里然而,当我从我的OSX机器执行它下面的命令不起作用?
请参阅:http://serverfault.com/questions/227804/why-cant-i-ssh-into-my-new-ec2-instance – bryanmac