You pushed your commit past Gerrit and straight into the repository,
thereby creating the ref refs/for/branch. Make sure you push with SSH
to Gerrit (by default listening to port 29418).
http://gerrit.googlecode.com/svn/documentation/2.2.0/user-upload.html
--
Magnus Bäck Opinions are my own and do not necessarily
SW Configuration Manager represent the ones of my employer, etc.
Sony Ericsson
$ ssh -p 29418 myname@localhost
**** Welcome to Gerrit Code Review ****
Hi , you have successfully connected over SSH.
Unfortunately, interactive shells are disabled.
To clone a hosted Git repository, use:
git clone ssh://myn...@192.xxx.x.xxx:29418/REPOSITORY_NAME.git
Connection to localhost closed.
> --
> To unsubscribe, email repo-discuss...@googlegroups.com
> More info at http://groups.google.com/group/repo-discuss?hl=en
>
> I believe there is also an issue of ssh keys. I followed
> http://review.coreboot.org/Documentation/user-upload.html, and pasted
> teh key on the Gerrit web interfae. Then:
>
> $ ssh -p 29418 myname@localhost
>
> **** Welcome to Gerrit Code Review ****
>
> Hi , you have successfully connected over SSH.
>
> Unfortunately, interactive shells are disabled.
> To clone a hosted Git repository, use:
>
> git clone ssh://myn...@192.xxx.x.xxx:29418/REPOSITORY_NAME.git
>
> Connection to localhost closed.
Good, so it works. Follow the instructions above regarding how to clone
a repository.
I did set the environment variable GIT_SSH to point to the plink.exe
On Mon, Sep 26, 2011 at 9:49 AM, Grazia Russo Lassner
> On Mon, Sep 26, 2011 at 9:43 AM, Magnus Bäck
> <magnu...@sonyericsson.com> wrote:
[...]
> > > $ ssh -p 29418 myname@localhost
> > >
> > > **** Welcome to Gerrit Code Review ****
> > >
> > > Hi , you have successfully connected over SSH.
> > >
> > > Unfortunately, interactive shells are disabled.
> > > To clone a hosted Git repository, use:
> > >
> > > git clone ssh://myn...@192.xxx.x.xxx:29418/REPOSITORY_NAME.git
> > >
> > > Connection to localhost closed.
> >
> > Good, so it works. Follow the instructions above regarding how to clone
> > a repository.
>
> Tried to clone, but got "No supported authentication methods left to
> try!"
Please quote full terminal transcripts. So
ssh -p 29418 myn...@192.xxx.x.xxx
gives you the previously cited message (without you having to type a
password), while
git clone ssh://myn...@192.xxx.x.xxx:29418/REPOSITORY_NAME.git
fails with the error message above? There shouldn't be a difference
between the two commands as far as SSH goes, unless you have an
insteadOf instruction in your ~/.gitconfig.
> I did set the environment variable GIT_SSH to point to the plink.exe
Uh, okay, but plink != ssh, right? Which command do you intend to use?
Pick one and use it consistently.
If plink can connect just fine, I'd verify that plink actually connects
to the host and port you expect it to, and that it reads the keyfile as
expected. You can use Process Monitor from Sysinternals for that. You
could also wrap plink.exe in a program or script that enables verbose
output (similar to "ssh -vv")?
--
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum
BUT
ssh -p 29418 myname@localhost returns
**** Welcome to Gerrit Code Review ****
Hi ..., you have successfully connected over SSH.
Unfortunately, interactive shells are disabled.
To clone a hosted Git repository, use:
git clone ssh://myn...@192.xxx.x.xxx:29418/REPOSITORY_NAME.git
Connection to localhost closed.
git clone ssh://myname@localhost:29418/REPO_NAME.git
would work. Does it?
No insteadOf instructions in .gitconfig
>> I did set the environment variable GIT_SSH to point to the plink.exe
>
> Uh, okay, but plink != ssh, right? Which command do you intend to use?
> Pick one and use it consistently.
You are right. Prefer ssh
>
> If plink can connect just fine, I'd verify that plink actually connects
> to the host and port you expect it to, and that it reads the keyfile as
> expected. You can use Process Monitor from Sysinternals for that. You
> could also wrap plink.exe in a program or script that enables verbose
> output (similar to "ssh -vv")?
>
> --
> Magnus Bäck Opinions are my own and do not necessarily
> SW Configuration Manager represent the ones of my employer, etc.
> Sony Ericsson
>
If I try to connect using plink, I get the same error message of "No
supported authetication methods left to try" that I get with the
git clone ssh://myname@localhost:29418/repository_name.git
it seems that the 'git clone' command is using plink, not ssh.
Forgot to mention, I am using the MINGW32 console.
Very confused.
G.
On Mon, Sep 26, 2011 at 10:58 AM, Grazia Russo Lassner
> If ssh -p 29418 myname@localhost, I get the welcome gerrit code review
> message and the request to use the git clone command.
>
> If I try to connect using plink, I get the same error message of
> "No supported authetication methods left to try" that I get with the
> git clone ssh://myname@localhost:29418/repository_name.git
>
> it seems that the 'git clone' command is using plink, not ssh.
>
> Forgot to mention, I am using the MINGW32 console.
Okay, so plink doesn't appear to work. Can't you force Git to use ssh
via GIT_SSH?
It seems plink requires that pageant is running. See
http://help.github.com/ssh-issues/ for more information.
http://code.google.com/p/msysgit/issues/detail?id=313
GIT_SSH cannot be set to a path containing spaces.
Although now that I have eliminated the "cannot spawn" problem, I have
the '....git': not a Gerrit project one
;-))
G.