Git fetch upstream Error: XXX Permission denied (publickey). fatal: Could not read from remote repository

This error is usually your key error and needs to be regenerated.

Open bash in any path of windows, and then enter the command SSH keygen – t RSA – C email address
the default generated key is/C/users/user name/.SSH

View public key

Copy the public key to GitHub
enter the warehouse and click setting -> Deploy Keys -> Add new, paste the public key, enter the key input box, check allow push, and finally click the add key button to submit.

Similar Posts: