Git Authentication Problems
Authentication Errors Troubleshooting
- Make sure ran
ezzshh git
before running your Git Commands - Make sure your git repository is on the Git organization that trusts EZSSH
- Make sure you have the right access to the repository.
“Permission denied (publickey)” on Windows
If when you run:
ssh YOURGITORGADDRESS
you are able to authenticate. But when you run any git operation you get the following error:
YOURGITORGADDRESS: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
This is because Windows Git can be setup on installation to use its own SSH-Agent instead of using the Windows one. To fix this problem you will have to change your git installation to use the windows SSH-Agent. To do this run:
git config --global core.sshCommand "'C:\Windows\System32\OpenSSH\ssh.exe'"
For changes to take effect, you might have to close your terminal, and in some cases a reboot is necessary.