Bitbucket克隆私人git存储库

5 git bitbucket git-clone

我想要克隆私有git存储库bitbucket,但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.
Run Code Online (Sandbox Code Playgroud)

我必须生成一个新的,ssh-key还是可以获得之前安装的旧密钥?如果是这样,我怎么能得到它?

Jas*_*hal 1

如果您没有可用的私钥副本,则必须生成一个新私钥并将其关联到您的帐户。没有办法取回私钥,这就是它们的私密性。