From: Shawn Pearce Date: Mon, 15 Nov 2010 18:38:21 GMT Subject: Re: Setting up Git Server over SSH Message-ID: In-Reply-To: On Mon, Nov 15, 2010 at 10:20 AM, Dennis 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.