相关疑难解决方法(0)

无法推送到bitbucket,Permission denied(publickey)

我正在努力将我的项目推到我的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 
Run Code Online (Sandbox Code Playgroud)

我在Mac上运行10.8.4.

所以已经取得了一些进展,最初没有.ssh文件夹,所以我在开始时创建了那条路,没有known_hosts文件所以我跑了

ssh -T git@bitbucket.org
Run Code Online (Sandbox Code Playgroud)

我选择了yes,这创建了一个known_hosts文件,当我再次尝试推送时,我得到了:

~/dev/sample_app git push -u origin --all
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure …
Run Code Online (Sandbox Code Playgroud)

ssh bitbucket ssh-keys

58
推荐指数
10
解决办法
5万
查看次数

标签 统计

bitbucket ×1

ssh ×1

ssh-keys ×1