最近,我在 Github.com 上注册了一个免费计划。
我按照他们的说明生成 ssh 密钥以添加到我的帐户。
然而,当我尝试ssh -v [email protected] /cdn-cgi/l/email-protection
,我收到此错误:
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).
当我查看错误时,我在这里看到一个有趣的事情,那就是 .ssh/id_rsa 没有被尝试,只是 .ssh/identity 和 .ssh/id_dsa 被尝试过。
我该如何修复这个错误?
谢谢
您可以使用ssh-add ~/.ssh/id_rsa
解决这个问题。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)