github使用问题汇总

github使用问题汇总

    正在检查是否收录...

1. Permission denied

1.1. 问题描述

Permission denied (publickey).

fatal: Could not read from remote repository.

1.2. 解决方法

生成公钥

ssh-keygen -t ed25519 -C "your_email@example.com"

 点击回车三次

Generating public/private ed25519 key pair. Enter file in which to save the key (/home/xxx/.ssh/id_ed25519): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/xxx/.ssh/id_ed25519 Your public key has been saved in /home/xxx/.ssh/id_ed25519.pub The key fingerprint is: SHA256:+plNIhibsYxRgWtH+mC08HoXLp62ylAB2YQgcZaddBk haitao.xue@nio.com The key's randomart image is: +--[ED25519 256]--+ |**+=o.Eo | |=+= +o. | | +.=. | | Ooo | | +o=o. S | |..o++B . | |.o.+* o . . | |o + o * | |.+.. + . | +----[SHA256]-----+

 读取公钥

cat ~/.ssh/id_ed25519.pub

 把公钥填入到github中

参考文献

Generating a new SSH key and adding it to the ssh-agent - GitHub Docs

sshcodegithubgitideemailerpoooiva参考文献docurl
  • 本文作者:李琛
  • 本文链接: https://wapzz.net/post-7990.html
  • 版权声明:本博客所有文章除特别声明外,均默认采用 CC BY-NC-SA 4.0 许可协议。
本站部分内容来源于网络转载,仅供学习交流使用。如涉及版权问题,请及时联系我们,我们将第一时间处理。
文章很赞!支持一下吧 还没有人为TA充电
为TA充电
还没有人为TA充电
0
  • 支付宝打赏
    支付宝扫一扫
  • 微信打赏
    微信扫一扫
感谢支持
文章很赞!支持一下吧
关于作者
2.3W+
5
0
1
WAP站长官方

AIGC智能编程:提升开发效率之利器

上一篇

文心一言---中国版的“ChatGPT”狂飙的机会或许要出现了

下一篇
  • 复制图片
按住ctrl可打开默认菜单