github使用问题汇总

1. Permission denied

1.1. 问题描述

Permission denied (publickey).

fatal: Could not read from remote repository.

1.2. 解决方法

生成公钥

bash 复制代码
ssh-keygen -t ed25519 -C "your_email@example.com"

点击回车三次

bash 复制代码
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]-----+

读取公钥

bash 复制代码
cat ~/.ssh/id_ed25519.pub

把公钥填入到github中

参考文献

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

相关推荐
拙慕JULY17 小时前
GitHub Copilot 在 Vue.js 开发中的使用
vue.js·github·copilot
zander25818 小时前
如何使用github进行团队开发项目
github·团队开发
ReSearch2 天前
sfsEdgeStore:边缘计算时代的轻量级数据存储解决方案
数据库·后端·github
irpywp2 天前
平台禁下载、格式不兼容、剪辑太麻烦,Media Downloader:mac 原生媒体下载工具,一站式解决视频下载、转码、裁剪、管理难题
macos·开源·github·音视频·媒体
Harvy_没救了2 天前
【github 爆款】隐匿与通行:CloakBrowser 项目深度洞察报告
github
L_Xian2 天前
StarrySky重新维护了,摆烂了一段时间,想想还是搞搞吧。
android·github·音视频开发
风起时Funchs2 天前
我把 JetBrains 的 Git 客户端搬到了 VS Code
github
神奇椰子2 天前
基于浪浪云轻量服务器与宝塔面板的CMS快速部署实践
运维·服务器·github
冴羽yayujs2 天前
GitHub 热门项目-日榜(2026-05-13)
github
0vvv02 天前
github拆分小批量上传文件
github