相关疑难解决方法(0)

SSH无法通过git@github.com进行身份验证

最近,我在Github.com上签了一个免费计划.我按照他们的说明生成一个ssh密钥以添加到我的帐户.但是,当我尝试时ssh -v git@github.com,我收到此错误:

debug1: Server accepts key: pkalg ssh-rsa blen 277
Agent admitted failure to sign using the key.
debug1: Trying private key: /home/phuongnd08/.ssh/identity
debug1: Trying private key: /home/phuongnd08/.ssh/id_dsa
debug1: No more authentication methods to try.
Permission denied (publickey).
Run Code Online (Sandbox Code Playgroud)

当我查看错误时,我在这里看到一个有趣的事情,就是没有尝试过.ssh/id_rsa,只是尝试了.ssh/identity和.ssh/id_dsa.

我该如何解决这个错误?谢谢

ssh ubuntu ssh-keys

32
推荐指数
3
解决办法
1万
查看次数

标签 统计

ssh ×1

ssh-keys ×1

ubuntu ×1