如何推送本地回购到bitbucket?
问题描述:
我有我的回购在网上到位桶,我已经创建了使用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.
那么,什么是人仍下落不明?
答
如this answer所述,设置“部署密钥”只会给您提供只读权限:推送将无法工作。
您需要将您的公钥($ HOME/.ssh/id_rsa)添加到您的BitBucket帐户。
请参阅“How to install a public key on your Bitbucket account”
我,虽然我已经创建了一个特定的公共密钥,只有猫的〜/ .ssh/id_rsa.pub所示的键工作的话,为什么我不能添加任何的公钥呢? – simo 2014-11-10 04:34:15