Re: Setting up Git Server over SSH
- From
- Dennis <dennisfm@friendlymatch.com>
- Date
- Nov 15, 2010, 19:14 UTC
- Message-ID
- <E698106BE2EB405A93D2C3304AF79529@denny>
- In-Reply-To
- <AANLkTimF2N-rYFYjOMm5kRRqRueLnmzJGpUoaCK3jsAC@mail.gmail.com>
Thanks, that worked
I used OpenSSH instead of Putty and that fixed things up.
Dennis
----- Original Message ----- From: "Shawn Pearce" <spearce@spearce.org> To: "Dennis" <dennisfm@friendlymatch.com> Cc: <git@vger.kernel.org> Sent: Monday, November 15, 2010 1:38 PM Subject: Re: Setting up Git Server over SSH
Show 27 quoted lines
> On Mon, Nov 15, 2010 at 10:20 AM, Dennis <dennisfm@friendlymatch.com> > wrote: >> I am doing this, but it fails: >> >>> git clone ssh://hostname.com:/home/user/.git >> >> Cloning into user... >> fatal: protocol error: bad line length character: logi > > This looks to me like your server is echoing back text upon login. > That text is being confused for Git protocol data by the Git client, > but its not as expected, so it aborts with an error message. > > Try getting the simple case to work first: > > ssh hostname.com echo hello > > This should *only* print "hello". If it prints anything else (and > right now I suspect it prints "login ..."), that will confuse Git. > You need to adjust your server's shell login scripts to stop echoing > information during a non-interactive shell. Or you may need to adjust > your SSH client to ensure the authentication proceeds smoothly. Those > "Access denied" errors look like you aren't actually authenticating to > the server. > > -- > Shawn.