9

我无法将我的 Bitbucket git 存储库连接到 Nitrous.io。这是我得到的错误:

Permission denied (publickey).
fatal: Could not read from remote repository.

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

起初我以为您必须在 Nitrous 和 Bitbucket 中拥有计算机的公钥才能连接它们,但这不起作用。我错过了什么?

4

1 回答 1

23

你所要做的就是:

转到您的氮气盒(IDE 或终端),然后运行:

cat ~/.ssh/id_rsa.pub

这将显示Nitrous SSH 公钥(不是您计算机的公钥,而是该框的公钥)。

转到 Bitbucket > 我的帐户 > SSH 密钥并粘贴 Nitrous 密钥。确保将其命名为 Nitrous 或类似名称,以便稍后知道它是什么密钥。然后你的回购将连接得很好。

于 2014-01-10T19:33:05.510 回答