我正在尝试将我的项目推到我的 bitbucket 上,这已经搞砸了大约 4 天,倾注了无数的问题解决/页面/故障排除/教程。我不知所措,非常沮丧。我以前做过,但是在不同的计算机上...无论如何,这是我得到的代码/响应
~/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 git@bitbucket.org
我选择了是,这创建了一个 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。