How to fix Permission denied (publickey). fatal: Could not read from remote repository
Fixing permission denied Public key and could not pull from remote repository
Sometimes all of a sudden your repository throws an error while pulling, the public key was denied and the could not pull from the repository. To fix this we need to run,
$ eval `ssh-agent -s` [ the -s Generate Bourne shell commands on stdout ]
Then run the command $ ssh-add which will ask for passphrase and once you gave the passphrase it will add your public key to the ssh agent.
Now try to pull from the repository and it should work.
Comments