将Nitrous.io连接到Bitbucket Git SSH公钥

rnc*_*rtr 9 git ssh bitbucket public-key nitrousio

我无法将我的Bitbucket git repos连接到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.
Run Code Online (Sandbox Code Playgroud)

起初我以为你必须让你的计算机的公钥在Nitrous和Bitbucket连接它们,但这不起作用.我错过了什么?

rnc*_*rtr 23

你所要做的就是:

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

cat ~/.ssh/id_rsa.pub
Run Code Online (Sandbox Code Playgroud)

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

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