我似乎在从另一个(本地)仓库推送到 GitHub 账户后失去了权限。现在我收到以下错误:
git push
Permission denied (publickey).fatal:
The remote end hung up unexpectedly
我接下来采取了以下步骤来重新生成一个密钥:
ssh-keygen
Set up an ssh on my account for this laptop, using id_rsa.pub
然而,这并没有成功。当我尝试下面推荐的代码时,我收到了以下错误:
ssh-add -l
Could not open a connection to your authentication agent.
有什么想法吗?