Troubleshooting for Windows ¶
Its strongly recommended to use the Git Bash on Windows as shown in previous chapters. We experienced issues with powershell etc. and some commands described in the documentation only work in Git Bash.
Permission denied (publickey) ¶
If you try to push to gerrit and you keep getting the following error message
Permission denied (publickey). fatal: Could not read from remote repository.
Checklist for ssh problems ¶
Make sure the public SSH key is stored in your Gerrit Acccount
Check if your private SSH key is in the correct OpenSSH format.
You can export your SSH key to the correct OpenSSH format with the Putty Key Generator with Conversions -> Export OpenSSH Key -> safe with a filename, but without a file ending!
Check if the ssh-agent is running or turn it on
Add your SSH key to the ssh-agent
The SSH key should have NO file ending (like .ppk). In windows explorer you should find the SSH key in the file: