2014-01-10 44 views
9

我无法将到位桶的git回购协议连接到Nitrous.io。以下是错误我得到:连接Nitrous.io到Git的到位桶SSH公用密钥

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

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

起初我还以为你不得不在二氮和到位桶您的计算机的公钥将它们连接起来,但不起作用。我错过了什么?

回答

23

所有你需要做的是:

转到您的氮箱(IDE或终端),并运行此:

cat ~/.ssh/id_rsa.pub 

这将显示氧化亚氮 SSH公钥(不是你的计算机的公钥,但那个盒子的公钥)。

去Bitbucket>我的帐户> SSH密钥并粘贴Nitrous键。一定要命名它Nitrous或类似的东西,所以你知道什么关键是以后。然后你的回购将连接得很好。