Troubleshooting for Windows

SSH

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.
Copied!

Checklist for ssh problems

  1. Make sure the public SSH key is stored in your Gerrit Acccount

    See Setting up Gerrit (ssh)

  2. 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!

  3. Check if the ssh-agent is running or turn it on

    ssh-agent -s
    Copied!
  4. Add your SSH key to the ssh-agent

    ssh-add ~/.ssh/my_key
    Copied!

    The SSH key should have NO file ending (like .ppk). In windows explorer you should find the SSH key in the file:

    C:\Users\<username>\.ssh\
    Copied!