我想把我的项目推到我的bitbucket上,一直在搞这个大约4天,通过无数问题解决/页面/故障排除/教程。我不知所措,非常沮丧。我这样做之前,但在不同的计算机...反正这里是代码/应答我得到无法推送到bitbucket,权限被拒绝(publickey)
~/dev/sample_app git push -u origin --all
The authenticity of host 'bitbucket.org (131.103.20.168)' can't be established.
RSA key fingerprint is 81:7b:2c:f5:6f:18:2b:7c:4b:ec:aa:46:46:74:7c:40.
Are you sure you want to continue connecting (yes/no)?
Host key verification failed.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
~/dev/sample_app
我上运行10.8.4的Mac。
那么一点已经取得了进展,最初没有的.ssh文件夹,所以我创建了早在开始的时候,没有known_hosts文件,所以我跑了
ssh -T [email protected]
我选择的是和这创造一个known_hosts文件,当我试图再次推我:
~/dev/sample_app git push -u origin --all
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
我的.ssh文件夹是700和键里面都是600
作为一个正式的答案,回答你自己的问题实际上是鼓励,只是让你知道:) – iono
而你的私钥对应的公钥是在你的bitbucket账号上注册的吗? – janos