我很困惑。我试图让该git clone命令正常工作,但它一直说:
git@github.com: 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)
不过,我觉得我已经完成了所有正确的步骤。
1-我已经安装了git。当我这样做时,git --version它说git version 2.17.1。
2-我也完成ssh-keygen -t ed25519 -C "my_email@example.com"并查看了id_ed25519.pub我的.ssh文件夹中的文件。
3-我已经完成eval "$(ssh-agent -s)"并将ssh-add ~/.ssh/id_ed25519内容id_ed25519.pub作为 SSH 密钥复制到我的 Github 中。
然后当我这样做时
ssh -T git@github.com
我得到:
The authenticity of host 'github.com (140.82.114.4)' can't be established.
RSA key fingerprint is …Run Code Online (Sandbox Code Playgroud)