当前位置:网站首页>Please make sure you have the correct access rights and the repository exists. Problem solved
Please make sure you have the correct access rights and the repository exists. Problem solved
2022-08-02 15:22:00 【N.S.N】
Permission denied (publickey).
fatal: Could not read from remote repository.
There is a problem with the public key. You need to set the user and mailbox first and then regenerate the ssh public key.
1. First, I have to reset the name and email address of the identity in git and enter the folder that needs to be submitted (because git Bash is opened directly, in the case of no pathDown, not at all! Method! Change! The pit I encountered when I just used git...)
git config --global user.name "yourname"
git config --global user.email "[email protected]"
Note: yourname is the name you want to set, and [email protected] is the email address you want to set.
2. Delete the known_hosts in the .ssh folder [C:\Users(local user name).ssh] (you can delete it directly)
3. Open bash.exe in the bin directory (usually C:\Program Files\Git\bin) in the downloaded Git and enter the command
$ ssh-keygen -t rsa -C "[email protected]" (please fill in the email address you set)
If the execution is successful.Return:
Generating public/private rsa key pair.
Enter file in which to save the key (/c/Users/your_user_directory/.ssh/id_rsa):
If there is a previous storage address, it will return /Users/your username/.ssh/id_rsa already exists.Overwrite (y/n)? Enter y directly and press Enter.
Enter passphrase(empty for no passphrase) will appear if the address has not been stored before; also press Enter directly,
In both cases, Enter same passphrase again will appear after pressing Enter, and then pressing Enter will display
Thekey's randomart image is:
±–[RSA 2048]----+
| .o== oo+.o.oo. |
|…+=++…O =… . |
|.o.+oo+.B o o o |
| o…o.o . o |
| o…S o |
| . . o… |
| . . o o |
|. . + |
|oE .o . |
±—[SHA256]-----+
4. Then find the system to automatically generate two files in the .ssh folder, id_rsa and id_rsa.pub, open id_rsa.pub with Notepad and copy all the contents.
5. Open https://github.com/, log in to your account, go to Settings and find
6. Then paste the content you copied into the key and click Add SSH Key
7. Still enter ssh -T [email protected] in bash.exe and a bunch of content will pop up. You just need to type yes and hit enter and you're done, thenHe will prompt you to succeed.
边栏推荐
- 系统线性、时不变、因果判断
- LLVM系列第二十一章:写一个简单的Loop Pass
- 【深度学习中的损失函数整理与总结】
- PyTorch②---transforms结构及用法、常见的Transforms
- LLVM系列第八章:算术运算语句Arithmetic Statement
- CMAKE
- GICv3/v4-软件概述
- FP7195降压恒流PWM转模拟调光零压差大功率驱动方案原理图
- The problem that UIWindow's makeKeyAndVisible does not call viewDidLoad of rootviewController
- Do Windows 10 computers need antivirus software installed?
猜你喜欢
随机推荐
FP5139电池与适配器供电DC-DC隔离升降压电路反激电路电荷泵电路原理图
FP7195转模拟调光技术解决智能家居调光频闪和电感噪音的原理
ARMv8虚拟化
FP7195转模拟恒流调光芯片在机器视觉光源的应用优势
Tensorflow常用函数
LORA芯片ASR6601支持M4内核的远距离传输芯片
PyTorch⑤---卷积神经网络_卷积层
LeetCode2 电话号码的字母组合
vscode镜像
Do Windows 10 computers need antivirus software installed?
文本匹配任务
GPT2计算流程详解
2022TI杯D题混沌信号产生实验装置
Please make sure you have the correct access rights and the repository exists.问题解决
CS4398音频解码替代芯片DP4398完全兼容DAC解码
针对多轮推理分类问题的软标签构造方法
The overlapping effect of the two surfaceviews is similar to the video and handout practice in the live effect
Binder机制(中篇)
2020-02-06-快速搭建个人博客
系统线性、时不变、因果判断