Git development
 help / color / mirror / Atom feed
From: Aaron180 <aaron@vanstralen.net>
To: git@vger.kernel.org
Subject: Access Denied when pushing git
Date: Tue, 26 May 2009 18:40:47 -0700 (PDT)	[thread overview]
Message-ID: <1243388447198-2978561.post@n2.nabble.com> (raw)


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.

             reply	other threads:[~2009-05-27  1:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-27  1:40 Aaron180 [this message]
2009-05-27  3:14 ` Access Denied when pushing git Robin H. Johnson
2009-05-27  3:48   ` Aaron180
2009-05-27  3:46 ` Sitaram Chamarty

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1243388447198-2978561.post@n2.nabble.com \
    --to=aaron@vanstralen.net \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox