* Access Denied when pushing git
@ 2009-05-27 1:40 Aaron180
2009-05-27 3:14 ` Robin H. Johnson
2009-05-27 3:46 ` Sitaram Chamarty
0 siblings, 2 replies; 4+ messages in thread
From: Aaron180 @ 2009-05-27 1:40 UTC (permalink / raw)
To: git
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.
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: Access Denied when pushing git
2009-05-27 1:40 Access Denied when pushing git Aaron180
@ 2009-05-27 3:14 ` Robin H. Johnson
2009-05-27 3:48 ` Aaron180
2009-05-27 3:46 ` Sitaram Chamarty
1 sibling, 1 reply; 4+ messages in thread
From: Robin H. Johnson @ 2009-05-27 3:14 UTC (permalink / raw)
To: Git Mailing List
On Tue, May 26, 2009 at 06:40:47PM -0700, Aaron180 wrote:
> I've been trying to figure this out for two days now, any help would be
> appreciated
1. I wouldn't rely on the '~' being expanded, try with a full path.
2. If there is a banner or some output from your bashrc, I've seen those
cause problems.
--
Robin Hugh Johnson
Gentoo Linux Developer & Infra Guy
E-Mail : robbat2@gentoo.org
GnuPG FP : 11AC BA4F 4778 E3F6 E4ED F38E B27B 944E 3488 4E85
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Access Denied when pushing git
2009-05-27 3:14 ` Robin H. Johnson
@ 2009-05-27 3:48 ` Aaron180
0 siblings, 0 replies; 4+ messages in thread
From: Aaron180 @ 2009-05-27 3:48 UTC (permalink / raw)
To: git
Well it now works! Thank you so much.
Your mention in #2 helped, I thought maybe there is something going on with
windows' line endings or something along those lines since I am using
cygwin.
I then realized I also had installed Msysgit, so I uninstalled Msysgit and
everything is working like a charm!
Not sure if that is what you intended but it sure nudged me in the right
direction!
Thank you,
Aaron
Robin H. Johnson-2 wrote:
>
> On Tue, May 26, 2009 at 06:40:47PM -0700, Aaron180 wrote:
>> I've been trying to figure this out for two days now, any help would be
>> appreciated
> 1. I wouldn't rely on the '~' being expanded, try with a full path.
> 2. If there is a banner or some output from your bashrc, I've seen those
> cause problems.
>
> --
> Robin Hugh Johnson
> Gentoo Linux Developer & Infra Guy
> E-Mail : robbat2@gentoo.org
> GnuPG FP : 11AC BA4F 4778 E3F6 E4ED F38E B27B 944E 3488 4E85
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
>
--
View this message in context: http://n2.nabble.com/Access-Denied-when-pushing-git-tp2978561p2978977.html
Sent from the git mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Access Denied when pushing git
2009-05-27 1:40 Access Denied when pushing git Aaron180
2009-05-27 3:14 ` Robin H. Johnson
@ 2009-05-27 3:46 ` Sitaram Chamarty
1 sibling, 0 replies; 4+ messages in thread
From: Sitaram Chamarty @ 2009-05-27 3:46 UTC (permalink / raw)
To: git
On 2009-05-27 01:40:47, Aaron180 <aaron@vanstralen.net> wrote:
> fatal: protocol error: bad line length character <---- sometimes this is
> not there
http://git.or.cz/gitwiki/GitFaq#protocolerror.3Abadlinelengthcharacter
maybe?
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-05-27 3:48 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-27 1:40 Access Denied when pushing git Aaron180
2009-05-27 3:14 ` Robin H. Johnson
2009-05-27 3:48 ` Aaron180
2009-05-27 3:46 ` Sitaram Chamarty
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox