Is your username on the local machine the same as your email username?
If it isn't you can set it in your ssh configuration (~/.ssh/config):
Host <host>
User <username>
or you can do it via repo:
git config --global review."<URL>".username <username>
Best way to find out would be to ssh <host> -p 29418 gerrit,
if that doesn't work try adding -l vikasa and try again...
IIRC that can come from two areas:
-username mismatch
-key issue
On the username front, you need to check in Gerrit settings that you
do have an ssh username set up. It's the first field at
https://review.source.android.com/#settings
Also, the default behavior is to assume that your ssh username is the
username in the email address you set up during repo init. If that's
not the case, Ian gave details later in the thread about how to manage
the mismatch. I've recently helped someone do it successfully with git
config --global
review.https://android-git.corp.google.com/g/Gerrit.username
<username>
On the key side, things can be harder to diagnose. Luckily, it's easy
to eyeball that your public key has been properly uploaded. Once
that's the case, the rest tends to boil down to invoking ssh-add
and/or ssh-agent in the right order with the right parameters... and
as far as I'm concerned that's black magic.
JBQ
> --
> To unsubscribe, email repo-discuss...@googlegroups.com
> More info at http://groups.google.com/group/repo-discuss?hl=en
>
--
Jean-Baptiste M. "JBQ" Queru
Software Engineer, Android Open-Source Project, Google.
Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further
warning.
On Mon, Jun 20, 2011 at 8:03 PM, Ian Kumlien <ian.k...@gmail.com> wrote:On Mon, Jun 20, 2011 at 08:57, vikasa <vik...@google.com> wrote:Is your username on the local machine the same as your email username?
> to review.source.android.com (y/n)? y
> Permission denied (publickey).
> fatal: The remote end hung up unexpectedly
If it isn't you can set it in your ssh configuration (~/.ssh/config):
Host <host>
User <username>
or you can do it via repo:
git config --global review."<URL>".username <username>
Best way to find out would be to ssh <host> -p 29418 gerrit,
if that doesn't work try adding -l vikasa and try again...