Fixing my OpenStack Gerrit Permission denied (publickey) problem

12 Feb

I was setting up a laptop to contribute some code to OpenStack according to the Gerrit Workflow Account Setup. When I got to the point of doing the git review -s I hit the error

$ git review -s
Problem running 'git remote update gerrit'
Fetching gerrit
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
error: Could not fetch gerrit
Problems encountered installing commit-msg hook
The following command failed with exit code 1
"scp -P 29418 .git/hooks/commit-msg"
Permission denied (publickey).

Searching around I found Permission denied (publickey) which was helpful in troubleshooting but didn’t suggest an answer.

The solution was to let OpenSSH know where my private key was. I added the following to my ~/.ssh/config file.

    IdentityFile ~/Box/Keys/id_rsa.openstack

Note: That should be a tab before the IdentityFile!

Leave a comment

Posted by on February 12, 2014 in git, openstack


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Get every new post delivered to your Inbox.

%d bloggers like this: