Bitbucket克隆私有git仓库

5

我想在 bitbucket 上克隆一个私有的 git 仓库,但是我的工作站上还没有 ssh-key。当我尝试克隆时,会得到以下错误信息:

Cloning into 'notdefinedyet'...
Permission denied (publickey).
fatal: Could not read from remote repository.

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

我必须生成一个新的ssh-key吗?还是可以获取之前安装的旧密钥?如果可以,如何获取?

1个回答

1
如果您没有私钥的副本可用,您将需要生成一个新的私钥并将其关联到您的帐户上。无法获得私钥,这就是使它们变成私有的原因。

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接