尝试阅读ID_RSA
我正在尝试阅读CAT ID_RSA
,但是要投掷
cat: id_rsa: Permission denied
也不是让我通过说
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.
我缺少什么来推动对存储库的更改
I am trying to read cat id_rsa
, but is it throwing
cat: id_rsa: Permission denied
Also is not letting me push changes to the repository by saying
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.
What am i missing
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
需要root使用权限以读取此文件,因此请使用
Need root use permission to read this file so use
您是否尝试使用Sudo读取文件?
sudo cat id_rsa.pub
无论如何我都知道github所需的ssh键是publickey。
为了进一步调试您的问题,您可能需要确保实际上将SSH密钥添加到您的GitHub帐户中并具有正确的权限。
您可以通过按照遵循步骤在这里
调试问题的进一步步骤可能会有用在这里((例如,验证您的用户在验证SSH键后可以建立连接)
Did you try with sudo to read the file?
sudo cat id_rsa.pub
To my knowledge anyways the ssh key needed for GitHub is the publickey.
To further debug your problem, you might want to make sure that the ssh key is actually added to your github account and has the right permissions.
You can debug if your ssh key is being used with your account by following the steps here
further steps of debugging the issue that might be helpful can be found here (e.g. verifying that your user can make connections after verifying the ssh key)