Github
GitHub Error Message — Permission denied (public key)
Permission denied (public key) fatal: Could not read from remote repository Show git Error.
In This Post, I'm Told and Help you. How to Resolve this Error Permission denied (public key).
Why Show Error?
Mostly commonly show an Error when we use after a long time Bash || Git so in that case, we offer an Error. Handle that Error. Create New SSH KEY for Github.
Look Like
Let's Start It?
- Open Bash
- Run Command
- Go to Github
Open Bash
Desktop Home > Click Right key On Mouse( Laptop pad Right Key). After the open menu, selects Git bash here. Then open bash Terminal on your laptop || desktop.
Run Command
Go To your bash terminal on your laptop after copying past or writing a new terminal command to generate an SSH key for your Github.
Command
Paste your bash terminal
ssh-keygen // copy that past in bash cmd terminal
ssh-agent // that command tell you active connection list and some SSH key information
active
connectionGo to Github
First, open GitHub on your browser and click the setting tab. After scrolling down, select SSH and GPG key tab and click after opening the new ssh key page on Github. It gives a simple Tittle or project name; past your ssh key, click the add ssh key button.
Note
Copy only the .pub Extention File and paste it on Github key tab.
Youtube
Read On Medium
Reference
- https://git-scm.com/doc
- https://help.github.com/en/github/authenticating-to-github/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent
- https://help.github.com/en/github/authenticating-to-github/error-permission-denied-publickey
Conclusion
I hope you understand how to resolve that Error Message — Permission denied (public key). Suppose there are Any queries, mistakes, and Suggestions. Then, please, tell me in the comment box.