ubuntu – 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).

当我看错误,我看到一个有趣的东西在这里,这是.ssh / id_rsa没有尝试,只是.ssh /身份和.ssh / id_dsa试过。

如何解决这个错误
谢谢

检查您的密钥的文件权限。如果他们太自由,可能拒绝使用密钥。确保他们只有你的热情(0700)。

相关文章

目录前言一、创建Hadoop用户二、更新apt和安装Vim编辑器三、...
原文连接:https://www.cnblogs.com/yasmi/p/5192694.html ...
电脑重启后,打开VirtualBox,发现一直用的虚拟机莫名的消失...
参见:https://blog.csdn.net/weixin_38883338/article/deta...
Ubuntu 18.04 LTS 已切换到 Netplan 来配置网络接口。Netpla...
介绍每个 Web 服务都可以通过特定的 URL 在 Internet 上访问...