2014-11-08 115 views
1

我有我的回購在網上到位桶,我已經創建了使用SSH密鑰:如何推送本地回購到bitbucket?

ssh-keygen 

而且我使用導致密鑰,作爲網上回購部署的關鍵。 然後,在源樹我已經加入生成的密鑰,但是當我推回購,我得到這個錯誤:

Pushing to [email protected]:xxxxx/xxxxxx.git 

Permission denied (publickey). 

fatal: Could not read from remote repository. 

Please make sure you have the correct access rights 
and the repository exists. 




Completed with errors, see above. 

那麼,什麼是人仍下落不明?

回答

0

this answer所述,設置「部署密鑰」只會給您提供只讀權限:推送將無法工作。

您需要將您的公鑰($ HOME/.ssh/id_rsa)添加到您的BitBucket帳戶。
請參閱「How to install a public key on your Bitbucket account

+0

我,雖然我已經創建了一個特定的公共密鑰,只有貓的〜/ .ssh/id_rsa.pub所示的鍵工作的話,爲什麼我不能添加任何的公鑰呢? – simo 2014-11-10 04:34:15