我按照本教程在 github 上生成 SSH 密钥:在上述链接教程的第 5 步,输入后我ssh -T git@github.com
应该会看到:
The authenticity of host 'github.com (207.97.227.239)' can't be established.
# RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
# Are you sure you want to continue connecting (yes/no)?
但是,我看到了这个:
Agent admitted failure to sign using the key.
Permission denied (publickey).
然后,当我尝试使用 将文件推送到存储库git push -u origin master
时,我得到了这个:
Agent admitted failure to sign using the key.
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
我认为问题在于 SSH 密钥的设置。我怎样才能解决这个问题?
我正在使用 Linux。