新的一对ssh密钥无法连接到gitlab

时间:2016-07-07 19:56:56

标签: git ssh key gitlab ssh-keys

意外地我从.ssh文件夹中删除了私有公钥。现在我无法从gitlab存储库中克隆,因为这个问题:

Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.`

我检查了权限,使用新密钥创建了一个新帐户,再次创建新密钥但没有解决问题

我也搜索了很多,但结果是一样的。

非常感谢。

1 个答案:

答案 0 :(得分:0)

嘿...... 如果您删除了远程识别的私钥和/或公钥,并且您没有远见来保留备份,然后您将不得不重新注册键。 (“有效地重新开始”,因为您之前使用的已识别密钥现在已经在数字阴影中丢失了......)