{"thread":{"id":"19518","subject":"Access Denied when pushing git","startedAt":"2009-05-27T01:40:47Z","lastAt":"2009-05-27T03:48:09Z","messageCount":4,"participants":["Aaron180","Robin H. Johnson","Sitaram Chamarty"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"114753","messageId":"1243388447198-2978561.post@n2.nabble.com","threadId":"19518","inReplyTo":null,"subject":"Access Denied when pushing git","fromName":"Aaron180","fromEmail":"aaron@vanstralen.net","sentAt":"2009-05-27T01:40:47Z","receivedAt":"2009-05-27T01:40:47Z","isPatch":false,"sender":{"key":"aaron@vanstralen.net","avatar":null},"body":"\nI am a newbie with git but seem to have a problem with pushing a git\nrepository over a network.\nHere is what I do to recreate the problem:\n\n1. create a new git repository on the computer to push to\n    mkdir ~/git/test.git\n    cd !$\n    git --bare init-db\n\n2. On my local computer I then create a new git repository and add a random\nfile to it:\n   mkdir test\n   git init\n   touch TEST\n   git add .\n   git commit -m \"initial commit\"\n\n3. Then add the remote computer via:\n   git remote add origin ssh://user@site.com/~/git/test.git\n\n4. Then I try to push the local repository to the remote via:\n   git push origin master\n\nThis is what I get when I do that:\n\nfatal: protocol error: bad line length character  <---- sometimes this is\nnot there\nAccess denied\nAccess denied\nAccess denied\nAccess denied\nFATAL ERROR: Server sent disconnect message\ntype 2 (protocol error):\n\"Too many authentication failures for user\"\n\nI am using cygwin on an XP machine and trying to push to a unix server.\n\nI have also tried it between my two computers I have at home and I have the\nsame problem, both are windows machines by the way.\n\nI have set up passwordless login via ssh and I can ssh no problem via: \nssh user@site.com\n\nI've been trying to figure this out for two days now, any help would be\nappreciated\n\nThanks,\nAaron\n-- \nView this message in context: http://n2.nabble.com/Access-Denied-when-pushing-git-tp2978561p2978561.html\nSent from the git mailing list archive at Nabble.com.\n"},{"id":"114755","messageId":"robbat2-20090527T031233-374899931Z@orbis-terrarum.net","threadId":"19518","inReplyTo":"1243388447198-2978561.post@n2.nabble.com","subject":"Re: Access Denied when pushing git","fromName":"Robin H. Johnson","fromEmail":"robbat2@gentoo.org","sentAt":"2009-05-27T03:14:23Z","receivedAt":"2009-05-27T03:14:23Z","isPatch":false,"sender":{"key":"robbat2@gentoo.org","avatar":"https://avatars.githubusercontent.com/u/373898?v=4"},"body":"On Tue, May 26, 2009 at 06:40:47PM -0700, Aaron180 wrote:\n> I've been trying to figure this out for two days now, any help would be\n> appreciated\n1. I wouldn't rely on the '~' being expanded, try with a full path.\n2. If there is a banner or some output from your bashrc, I've seen those\n   cause problems.\n\n-- \nRobin Hugh Johnson\nGentoo Linux Developer & Infra Guy\nE-Mail     : robbat2@gentoo.org\nGnuPG FP   : 11AC BA4F 4778 E3F6 E4ED  F38E B27B 944E 3488 4E85\n"},{"id":"114759","messageId":"slrnh1pdsc.qn4.sitaramc@sitaramc.homelinux.net","threadId":"19518","inReplyTo":"1243388447198-2978561.post@n2.nabble.com","subject":"Re: Access Denied when pushing git","fromName":"Sitaram Chamarty","fromEmail":"sitaramc@gmail.com","sentAt":"2009-05-27T03:46:20Z","receivedAt":"2009-05-27T03:46:20Z","isPatch":false,"sender":{"key":"sitaramc@gmail.com","avatar":"https://avatars.githubusercontent.com/u/43316?v=4"},"body":"On 2009-05-27 01:40:47, Aaron180 <aaron@vanstralen.net> wrote:\n> fatal: protocol error: bad line length character  <---- sometimes this is\n> not there\n\nhttp://git.or.cz/gitwiki/GitFaq#protocolerror.3Abadlinelengthcharacter\nmaybe?\n"},{"id":"114760","messageId":"1243396089004-2978977.post@n2.nabble.com","threadId":"19518","inReplyTo":"robbat2-20090527T031233-374899931Z@orbis-terrarum.net","subject":"Re: Access Denied when pushing git","fromName":"Aaron180","fromEmail":"aaron@vanstralen.net","sentAt":"2009-05-27T03:48:09Z","receivedAt":"2009-05-27T03:48:09Z","isPatch":false,"sender":{"key":"aaron@vanstralen.net","avatar":null},"body":"\nWell it now works!  Thank you so much.  \nYour mention in #2 helped, I thought maybe there is something going on with\nwindows' line endings or something along those lines since I am using\ncygwin.  \nI then realized I also had installed Msysgit, so I uninstalled Msysgit and\neverything is working like a charm!\n\nNot sure if that is what you intended but it sure nudged me in the right\ndirection!\n\nThank you,\nAaron\n\n\nRobin H. Johnson-2 wrote:\n> \n> On Tue, May 26, 2009 at 06:40:47PM -0700, Aaron180 wrote:\n>> I've been trying to figure this out for two days now, any help would be\n>> appreciated\n> 1. I wouldn't rely on the '~' being expanded, try with a full path.\n> 2. If there is a banner or some output from your bashrc, I've seen those\n>    cause problems.\n> \n> -- \n> Robin Hugh Johnson\n> Gentoo Linux Developer & Infra Guy\n> E-Mail     : robbat2@gentoo.org\n> GnuPG FP   : 11AC BA4F 4778 E3F6 E4ED  F38E B27B 944E 3488 4E85\n> --\n> To unsubscribe from this list: send the line \"unsubscribe git\" in\n> the body of a message to majordomo@vger.kernel.org\n> More majordomo info at  http://vger.kernel.org/majordomo-info.html\n> \n> \n\n-- \nView this message in context: http://n2.nabble.com/Access-Denied-when-pushing-git-tp2978561p2978977.html\nSent from the git mailing list archive at Nabble.com.\n"}]}