git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Access Denied when pushing git

From
AAaron180 <aaron@vanstralen.net>
Date
May 27, 2009, 01:40 UTC
Message-ID
<1243388447198-2978561.post@n2.nabble.com>

I am a newbie with git but seem to have a problem with pushing a git repository over a network. Here is what I do to recreate the problem:

1. create a new git repository on the computer to push to
    mkdir ~/git/test.git
    cd !$
    git --bare init-db
2. On my local computer I then create a new git repository and add a random
file to it:
   mkdir test
   git init
   touch TEST
   git add .
   git commit -m "initial commit"
3. Then add the remote computer via:
   git remote add origin ssh://user@site.com/~/git/test.git
4. Then I try to push the local repository to the remote via:
   git push origin master
This is what I get when I do that:

fatal: protocol error: bad line length character <---- sometimes this is not there Access denied Access denied Access denied Access denied FATAL ERROR: Server sent disconnect message type 2 (protocol error): "Too many authentication failures for user"

I am using cygwin on an XP machine and trying to push to a unix server.

I have also tried it between my two computers I have at home and I have the same problem, both are windows machines by the way.

I have set up passwordless login via ssh and I can ssh no problem via: ssh user@site.com

I've been trying to figure this out for two days now, any help would be appreciated

Thanks, Aaron

-- 
View this message in context: http://n2.nabble.com/Access-Denied-when-pushing-git-tp2978561p2978561.html
Sent from the git mailing list archive at Nabble.com.
Next: Robin H. Johnson
Message 1 of 4 in “Access Denied when pushing git”
  1. Aaron180May 27, 2009
  2. Robin H. JohnsonMay 27, 2009
  3. Aaron180May 27, 2009
  4. Sitaram ChamartyMay 27, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.