尝试阅读ID_RSA

发布于 2025-02-13 12:10:03 字数 375 浏览 0 评论 0原文

我正在尝试阅读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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

月光色 2025-02-20 12:10:03

需要root使用权限以读取此文件,因此请使用

sudo cat id_rsa

Need root use permission to read this file so use

sudo cat id_rsa
懷念過去 2025-02-20 12:10:03

您是否尝试使用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)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文