我想把我的項目推到我的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