我在bitbucket上有我的repo,我使用:
创建了ssh密钥ssh-keygen
我已将结果密钥用作在线仓库的部署密钥。 然后,在source-tree我添加了生成的密钥,但是当我推送repo时,我收到了这个错误:
Pushing to git@bitbucket.org: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 :(得分:0)
如this answer中所述,设置"部署密钥"会给你只读权限:推送永远不会有效。
您需要将公钥($ HOME / .ssh / id_rsa)添加到您的BitBucket帐户。
请参阅" How to install a public key on your Bitbucket account"