On 06/01/2016 12:12 AM, Pete Zaitcev wrote:
The following command failed with exit code 1
"scp -P29418 zaitcev@review.rdoproject.org:hooks/commit-msg
.git/hooks/commit-msg"
-----------------------
Permission denied (publickey).
-----------------------
command failed: git review -r review-origin rpm-master
[zaitcev@lembas openstack-swift.master]$
How do you deal with it?
That happen when your gerrit doesn't know your user ssh public key.
You can upload your public key on this page:
https://review.rdoproject.org/r/#/settings/ssh-keys
Once added, you can check manually if it connects like that:
ssh -p 29418 zaitcev(a)review.rdoproject.org
If you use a special key, best is to use a .ssh/config like that:
Host
review.rdoproject.org
Port 29418
User github-username
IdentityFile ~/.ssh/commit-key
Regards,
-Tristan