Git Problems

Authentication Errors Troubleshooting

  1. Make sure ran ezzshh git before running your Git Commands
  2. Make sure your git repository is on the Git organization that trusts EZSSH
  3. 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 cause 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.