Git remote operation exception: correct access rights
question
Please make sure you have the correct access rights and the repository exists.[Windows]
Solution
Reconfigure the key information;
Full-text commands are executed using git bash;
1. Reset the git user's name and email address
# Set global git user name and mailbox;git config --global "yourname" git config --global "xxxx@"
2. Regenerate the ssh key pair
# If you don’t set a password, just press Enter to the end;ssh-keygen -t rsa -C "xxxx@"
3. Delete known_hosts in the .ssh folder
# If other ssh connections are involved, you can also delete only the corresponding rows;rm -rf ~/.ssh/known_hosts
4. Copy the public key to the hosting service
Will~/.ssh/id_rsa.pub
Copy the contents in the file toGitHub
/Gitee
The SSH public key is set;
5. Try sshing to GitHub/Gitee
This step will be rewrittenknown_hosts
;
# Execute using git bashssh -T git@ # orssh -T git@
Summarize
The above is personal experience. I hope you can give you a reference and I hope you can support me more.