当前位置:网站首页>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.
边栏推荐
猜你喜欢
随机推荐
Win10电脑需要安装杀毒软件吗?
PyTorch⑩---卷积神经网络_一个小的神经网络搭建
图像配置分类及名词解释
FP7128内置MOS降压恒流调光深度0.01%高辉共阳调光方案
LLVM系列第七章:函数参数Function Arguments
ARMv8虚拟化
设备驱动框架简介
FP7126降压恒流65536级高辉无频闪调光共阳极舞台灯RGB驱动方案
win10任务栏不合并图标如何设置
对疫情期间量化策略表现的看法
PyTorch③---torchvision中数据集的使用
【目标检测】YOLO v5 吸烟行为识别检测
NER(命名体识别)之 FLAT模型
LLVM系列第四章:逻辑代码块Block
ASR6601牛羊定位器芯片GPS国内首颗支持LoRa的LPWAN SoC
FP7122降压恒流内置MOS耐压100V共正极阳极PWM调光方案原理图
刷卡芯片CI520可直接PIN对PIN替换CV520支持SPI通讯接口
神经网络的设计过程
2020-02-06-快速搭建个人博客
机器学习和深度学习中的梯度下降及其类型









