Re: Setting up Git Server over SSH

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Nov 15, 2010 at 10:20 AM, Dennis <dennisfm@xxxxxxxxxxxxxxxxx> 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.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]