Maybe your GERRIT_USER is from your OS user? You might have to "export GERRIT_USER=your_gerrir_username" before you try to push.
On Wed, Jan 18, 2017 at 8:44 PM, Laurel Hale <[email protected]> wrote: > Hi, > I finally got time to push a review to gerrit today and got the following > error: > ---------------------------------------------------------------- > [laurel@laurel-MBP incubator-impala](remove_cm_from_some_titles)$ git > status > On branch remove_cm_from_some_titles > nothing to commit, working tree clean > [laurel@laurel-MBP incubator-impala](remove_cm_from_some_titles)$ git > push --no-thin asf-gerrit HEAD:refs/for/master > Permission denied (publickey). > fatal: Could not read from remote repository. > > Please make sure you have the correct access rights > and the repository exists. > ------------------------------------------------------------------ > > I checked my ~/.ssh/known_hosts file and it seems to include a pointer to > gerrit: > > [gerrit.cloudera.org]:29418,[75.101.130.251]:29418 ssh-rsa > AAAAB3NzaC1yc2EAAAADAQABAAABAQDVszOqZdQgRfqhii0gkwQnJJPtLmkc > VRXDr553L/xOGrjrCrF5sT0oM+UGqXg1ykxmMv7oEUZbf3AiBonyTQ4CQ71l > +nxbTCm97r+bo+AprhN8ybi0/gEsj5RtyDxNQk9M+wBZI8gje5Zj6f24sbPg > PsmR1LOG5rWhz8s8VHL/ZMAad9veB2xEDGrDzhc4OD6nVBn4XbFA2XEPt9qf > pvBgctKNcukfVeoe4d/o5OieRhcDZwmBhou+medqUVuEdg0DiORjMvHHQtpM > svRBt/JSIehctCVgzrEKA1dD3XzL27cuR7v7QlYx97zGtPx4l5dhSc+Z19g5BxD74P8GNvA3 > > which corresponds to the public key I uploaded to gerrit: > > > > > Any ideas of what I am doing wrong? > > Thanks, > > Laurel >
