目录

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

本文是转载文章,点击查看原文
如有侵权,请联系 xyy@jishuzhan.net 删除
相关推荐
Sherry Wangs10 小时前
GitHub实用手册
github
uhakadotcom10 小时前
PyTorch 2.0:最全入门指南,轻松理解新特性和实用案例
后端·面试·github
LTPP10 小时前
掌握Rust Web开发的未来:Hyperlane框架全方位教程 🎓🔧
前端·后端·github
uhakadotcom11 小时前
Apache APISIX入门指南:快速理解与实战示例
后端·面试·github
Gladiator57512 小时前
博客记录-day144-力扣
github
小七_雪球12 小时前
10分钟搞定Vite项目部署:从开发到上线(GitHub Pages+Vercel)全流程
vue.js·github
敖行客 Allthinker12 小时前
GitHub 封禁中国 IP:影响、原因及应对
网络协议·tcp/ip·github
小七_雪球13 小时前
Permission denied"如何解决?详解GitHub SSH密钥认证流程
前端·github
小七_雪球14 小时前
GitHub Pages+Vercel双部署?小心publicPath/base让你前功尽弃!
vue.js·github
小七_雪球15 小时前
十分钟搞定Vue2项目双平台部署:GitHub Pages+Vercel配置详解
vue.js·github