【发布时间】:2015-03-29 07:16:14
【问题描述】:
我正在尝试将新存储库推送到 bitbucket,但由于以下错误而被阻止:
git init
git remote add origin git@bitbucket.org:esend7881/node-chat-example.git
git add stuff
git commit -m 'Initial commi'
git push -u origin master
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
一点谷歌研究让我觉得命令 ssh-keygen -t rsa 会有所帮助,但它没有任何帮助
请注意,我确实有一些运行良好的存储库。我想在某个地方,我的钥匙被意外切换了。
如何使用这些密钥从头开始、重新生成新密钥、在 bitbucket 本身和我的本地计算机上注册它们,以便我可以像往常一样继续推送。 (注意我使用了几台计算机,所以我希望只向 bitbucket 提供我的用户名和密码就足够了。我想知道是否会意外标记一个额外的硬安全设置?)
【问题讨论】:
标签: git github ssh mercurial bitbucket