{"thread":{"id":"18919","subject":"git & ssh on F10 server","startedAt":"2009-04-17T15:56:16Z","lastAt":"2009-04-18T18:07:28Z","messageCount":9,"participants":["Aaron Gray","Julian Phillips"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"111500","messageId":"489CF11BD65F439998B6CF3FCC610576@HPLAPTOP","threadId":"18919","inReplyTo":null,"subject":"git & ssh on F10 server","fromName":"Aaron Gray","fromEmail":"aaronngray.lists@googlemail.com","sentAt":"2009-04-17T15:56:16Z","receivedAt":"2009-04-17T15:56:16Z","isPatch":false,"sender":{"key":"aaronngray.lists@googlemail.com","avatar":null},"body":"Hi,\n\nwe have a Fedora 10 server in SELinux enforcing mode setup running \ngit-deamon and gitweb (with home grown SElinux policy).\n\nAnyway now we find out you cannot do a 'push' over the basic git protocol, \nback to the server repository.\n\nSo now am trying to get git to work over ssh. The repositories are located \n/pub/git/*/.git\n\nBasic attempts using BerliOS'es instructions for client end failed.\n\n    http://developer.berlios.de/docman/display_doc.php?docid=1812&group_id=2\n\nCould someone please help us with this.\n\nAaron\n"},{"id":"111501","messageId":"alpine.LNX.2.00.0904171716150.8346@reaper.quantumfyre.co.uk","threadId":"18919","inReplyTo":"489CF11BD65F439998B6CF3FCC610576@HPLAPTOP","subject":"Re: git & ssh on F10 server","fromName":"Julian Phillips","fromEmail":"julian@quantumfyre.co.uk","sentAt":"2009-04-17T16:19:04Z","receivedAt":"2009-04-17T16:19:04Z","isPatch":false,"sender":{"key":"julian@quantumfyre.co.uk","avatar":"https://avatars.githubusercontent.com/u/948888?v=4"},"body":"On Fri, 17 Apr 2009, Aaron Gray wrote:\n\n> Hi,\n>\n> we have a Fedora 10 server in SELinux enforcing mode setup running git-deamon \n> and gitweb (with home grown SElinux policy).\n>\n> Anyway now we find out you cannot do a 'push' over the basic git protocol, \n> back to the server repository.\n\nYou can push over git://, but you get no authentication mechanism so it's \ndisabled by default.  It's only really useful if you trust everyone who \nhas IP access to the server.\n\n> So now am trying to get git to work over ssh. The repositories are located \n> /pub/git/*/.git\n>\n> Basic attempts using BerliOS'es instructions for client end failed.\n>\n>   http://developer.berlios.de/docman/display_doc.php?docid=1812&group_id=2\n>\n> Could someone please help us with this.\n>\n> Aaron\n\nYou haven't said what commands you tried, nor what the errors you received \nwere, so it's a bit hard to say what went wrong ...\n\n-- \nJulian\n\n  ---\n10.0 times 0.1 is hardly ever 1.0.\n"},{"id":"111509","messageId":"alpine.LNX.2.00.0904171812330.8773@reaper.quantumfyre.co.uk","threadId":"18919","inReplyTo":"FD77671D77E2465097BD60A1E144BB91@HPLAPTOP","subject":"Re: git & ssh on F10 server","fromName":"Julian Phillips","fromEmail":"julian@quantumfyre.co.uk","sentAt":"2009-04-17T17:17:28Z","receivedAt":"2009-04-17T17:17:28Z","isPatch":false,"sender":{"key":"julian@quantumfyre.co.uk","avatar":"https://avatars.githubusercontent.com/u/948888?v=4"},"body":"On Fri, 17 Apr 2009, Aaron Gray wrote:\n\n> Julian,\n>\n> Thanks for the response.\n\nNot a problem, but please keep the mailing list on the CC ...\n\n>>  On Fri, 17 Apr 2009, Aaron Gray wrote:\n>> \n>> >  Hi,\n>> > \n>> >  we have a Fedora 10 server in SELinux enforcing mode setup running \n>> >  git-deamon and gitweb (with home grown SElinux policy).\n>> > \n>> >  Anyway now we find out you cannot do a 'push' over the basic git \n>> >  protocol, back to the server repository.\n>>\n>>  You can push over git://, but you get no authentication mechanism so it's\n>>  disabled by default.  It's only really useful if you trust everyone who\n>>  has IP access to the server.\n>\n> How do go about I enabling it ?\n\nYou have to enable the receive-pack service.  You can either enable it for \nall repositories by using the --enable=<service> option to git-daemon, or \non a per-repository basis by setting daemon.receivepack to true in the \nrepositories that you want to enable push for.\n\n>> >  So now am trying to get git to work over ssh. The repositories are \n>> >  located /pub/git/*/.git\n>> > \n>> >  Basic attempts using BerliOS'es instructions for client end failed.\n>> > \n>> > \n>> >  http://developer.berlios.de/docman/display_doc.php?docid=1812&group_id=2\n>> > \n>> >  Could someone please help us with this.\n>> > \n>> >  Aaron\n>>\n>>  You haven't said what commands you tried, nor what the errors you received\n>>  were, so it's a bit hard to say what went wrong ...\n>> \n>\n> git push ssh://ang@git.site.org/pub/git/llvm/trunk milestone1\n> Pushing to ssh://ang@git.site.org/pub/git/llvm/trunk\n> fatal:  exec ssh failed.\n> fatal:  The remote end hung up unexpectedly\n\nSounds like git didn't find ssh on your path.\nWhat version of git is this btw?\n\n> A clone failed simularly\n>\n> I was expecting it to ask for a password. Should I try a DSA certificate ?\n>\n> Thanks,\n>\n> Aaron\n>\n>\n\n-- \nJulian\n\n  ---\n\"It's my cookie file and if I come up with something that's lame and I like it,\nit goes in.\"\n-- karl (Karl Lehenbauer)\n"},{"id":"111513","messageId":"637436EA5D5846208F8432D51B63D87D@HPLAPTOP","threadId":"18919","inReplyTo":"alpine.LNX.2.00.0904171812330.8773@reaper.quantumfyre.co.uk","subject":"Re: git & ssh on F10 server","fromName":"Aaron Gray","fromEmail":"aaronngray.lists@googlemail.com","sentAt":"2009-04-17T18:00:24Z","receivedAt":"2009-04-17T18:00:24Z","isPatch":false,"sender":{"key":"aaronngray.lists@googlemail.com","avatar":null},"body":"> On Fri, 17 Apr 2009, Aaron Gray wrote:\n>\n>> Julian,\n>>\n>> Thanks for the response.\n>\n> Not a problem, but please keep the mailing list on the CC ...\n>\n>>>  On Fri, 17 Apr 2009, Aaron Gray wrote:\n>>>\n>>> >  Hi,\n>>> >\n>>> >  we have a Fedora 10 server in SELinux enforcing mode setup running \n>>> > git-deamon and gitweb (with home grown SElinux policy).\n>>> >\n>>> >  Anyway now we find out you cannot do a 'push' over the basic git \n>>> > protocol, back to the server repository.\n>>>\n>>>  You can push over git://, but you get no authentication mechanism so \n>>> it's\n>>>  disabled by default.  It's only really useful if you trust everyone who\n>>>  has IP access to the server.\n>>\n>> How do go about I enabling it ?\n>\n> You have to enable the receive-pack service.  You can either enable it for \n> all repositories by using the --enable=<service> option to git-daemon, or \n> on a per-repository basis by setting daemon.receivepack to true in the \n> repositories that you want to enable push for.\n\nThanks, I'll make a note of that.\n\n>>> >  So now am trying to get git to work over ssh. The repositories are \n>>> > located /pub/git/*/.git\n>>> >\n>>> >  Basic attempts using BerliOS'es instructions for client end failed.\n>>> >\n>>> >\n>>> > \n>>> > http://developer.berlios.de/docman/display_doc.php?docid=1812&group_id=2\n>>> >\n>>> >  Could someone please help us with this.\n>>> >\n>>> >  Aaron\n>>>\n>>>  You haven't said what commands you tried, nor what the errors you \n>>> received\n>>>  were, so it's a bit hard to say what went wrong ...\n>>>\n>>\n>> git push ssh://ang@git.site.org/pub/git/llvm/trunk milestone1\n>> Pushing to ssh://ang@git.site.org/pub/git/llvm/trunk\n>> fatal:  exec ssh failed.\n>> fatal:  The remote end hung up unexpectedly\n>\n> Sounds like git didn't find ssh on your path.\n> What version of git is this btw?\n\nYep. No ssh installed in Cygwin.\n\nThanks Julian, I am getting lax these days !\n\nAaron\n"},{"id":"111577","messageId":"DD909F216D254CDAB2A0C0847AEB75C0@HPLAPTOP","threadId":"18919","inReplyTo":"alpine.LNX.2.00.0904171812330.8773@reaper.quantumfyre.co.uk","subject":"Re: git & ssh on F10 server","fromName":"Aaron Gray","fromEmail":"aaronngray.lists@googlemail.com","sentAt":"2009-04-18T15:12:32Z","receivedAt":"2009-04-18T15:12:32Z","isPatch":false,"sender":{"key":"aaronngray.lists@googlemail.com","avatar":null},"body":"> On Fri, 17 Apr 2009, Aaron Gray wrote:\n>>>  On Fri, 17 Apr 2009, Aaron Gray wrote:\n>>>\n>>> >  Hi,\n>>> >\n>>> >  we have a Fedora 10 server in SELinux enforcing mode setup running \n>>> > git-deamon and gitweb (with home grown SElinux policy).\n>>> >\n>>> >  Anyway now we find out you cannot do a 'push' over the basic git \n>>> > protocol, back to the server repository.\n>>>\n>>>  You can push over git://, but you get no authentication mechanism so \n>>> it's\n>>>  disabled by default.  It's only really useful if you trust everyone who\n>>>  has IP access to the server.\n>>\n>> How do go about I enabling it ?\n>\n> You have to enable the receive-pack service.  You can either enable it for \n> all repositories by using the --enable=<service> option to git-daemon, or \n> on a per-repository basis by setting daemon.receivepack to true in the \n> repositories that you want to enable push for.\n\nOkay I have added the following to 'config' :-\n\n[daemon]\n        receivepack = true\n\nand done an 'service xinetd restart' just in case, probably not needed.\n\nI have tried a 'git push git://.../repo' but it is hanging, btw I am using \nCygwin on the client, and F10 on the server.\n\nTrying to clone an empty repository also hangs. btw I have sucessfully \ncloned big repositories.\n\nAaron\n\n>>> >  So now am trying to get git to work over ssh. The repositories are \n>>> > located /pub/git/*/.git\n>>> >\n>>> >  Basic attempts using BerliOS'es instructions for client end failed.\n>>> >\n>>> >\n>>> > \n>>> > http://developer.berlios.de/docman/display_doc.php?docid=1812&group_id=2\n>>> >\n>>> >  Could someone please help us with this.\n>>> >\n>>> >  Aaron\n>>>\n>>>  You haven't said what commands you tried, nor what the errors you \n>>> received\n>>>  were, so it's a bit hard to say what went wrong ...\n>>>\n>>\n>> git push ssh://ang@git.site.org/pub/git/llvm/trunk milestone1\n>> Pushing to ssh://ang@git.site.org/pub/git/llvm/trunk\n>> fatal:  exec ssh failed.\n>> fatal:  The remote end hung up unexpectedly\n>\n> Sounds like git didn't find ssh on your path.\n> What version of git is this btw?\n>\n>> A clone failed simularly\n>>\n>> I was expecting it to ask for a password. Should I try a DSA certificate \n>> ?\n>>\n>> Thanks,\n>>\n>> Aaron\n>>\n>>\n>\n> -- \n> Julian\n>\n>  ---\n> \"It's my cookie file and if I come up with something that's lame and I \n> like it,\n> it goes in.\"\n> -- karl (Karl Lehenbauer) \n"},{"id":"111578","messageId":"alpine.LNX.2.00.0904181632150.20139@reaper.quantumfyre.co.uk","threadId":"18919","inReplyTo":"DD909F216D254CDAB2A0C0847AEB75C0@HPLAPTOP","subject":"Re: git & ssh on F10 server","fromName":"Julian Phillips","fromEmail":"julian@quantumfyre.co.uk","sentAt":"2009-04-18T15:34:01Z","receivedAt":"2009-04-18T15:34:01Z","isPatch":false,"sender":{"key":"julian@quantumfyre.co.uk","avatar":"https://avatars.githubusercontent.com/u/948888?v=4"},"body":"On Sat, 18 Apr 2009, Aaron Gray wrote:\n\n>>  On Fri, 17 Apr 2009, Aaron Gray wrote:\n>> > >   On Fri, 17 Apr 2009, Aaron Gray wrote:\n>> > > \n>> > > >   Hi,\n>> > > > \n>> > > >  we have a Fedora 10 server in SELinux enforcing mode setup running \n>> > > >  git-deamon and gitweb (with home grown SElinux policy).\n>> > > > \n>> > > >  Anyway now we find out you cannot do a 'push' over the basic git \n>> > > >  protocol, back to the server repository.\n>> > > \n>> > >  You can push over git://, but you get no authentication mechanism so \n>> > >  it's\n>> > >   disabled by default.  It's only really useful if you trust everyone \n>> > >   who\n>> > >   has IP access to the server.\n>> > \n>> >  How do go about I enabling it ?\n>>\n>>  You have to enable the receive-pack service.  You can either enable it for\n>>  all repositories by using the --enable=<service> option to git-daemon, or\n>>  on a per-repository basis by setting daemon.receivepack to true in the\n>>  repositories that you want to enable push for.\n>\n> Okay I have added the following to 'config' :-\n>\n> [daemon]\n>        receivepack = true\n>\n> and done an 'service xinetd restart' just in case, probably not needed.\n>\n> I have tried a 'git push git://.../repo' but it is hanging, btw I am using \n> Cygwin on the client, and F10 on the server.\n\nWhat output do you get?  What version of git are you using (client and \nserver)?\n\nDo you get any output logged by the git daemon?\n\n> Trying to clone an empty repository also hangs. btw I have sucessfully cloned \n> big repositories.\n>\n> Aaron\n\n-- \nJulian\n\n  ---\nYes, but every time I try to see things your way, I get a headache.\n"},{"id":"111579","messageId":"2162B69D06894B1BA9D38496D5D9A9E2@HPLAPTOP","threadId":"18919","inReplyTo":"alpine.LNX.2.00.0904171812330.8773@reaper.quantumfyre.co.uk","subject":"Re: git & ssh on F10 server","fromName":"Aaron Gray","fromEmail":"aaronngray.lists@googlemail.com","sentAt":"2009-04-18T15:37:55Z","receivedAt":"2009-04-18T15:37:55Z","isPatch":false,"sender":{"key":"aaronngray.lists@googlemail.com","avatar":null},"body":"F10 \n        git is version 1.6.0.6\n        git-daemon 1.6.0.6-3.fc10.i386\n\nCygwin git is version 1.6.1.2\n\nAaron\n"},{"id":"111580","messageId":"56F224865B074F398A67811CD80984C0@HPLAPTOP","threadId":"18919","inReplyTo":"alpine.LNX.2.00.0904181632150.20139@reaper.quantumfyre.co.uk","subject":"Re: git & ssh on F10 server","fromName":"Aaron Gray","fromEmail":"aaronngray.lists@googlemail.com","sentAt":"2009-04-18T15:58:33Z","receivedAt":"2009-04-18T15:58:33Z","isPatch":false,"sender":{"key":"aaronngray.lists@googlemail.com","avatar":null},"body":"> On Sat, 18 Apr 2009, Aaron Gray wrote:\n>\n>>>  On Fri, 17 Apr 2009, Aaron Gray wrote:\n>>> > >   On Fri, 17 Apr 2009, Aaron Gray wrote:\n>>> > >\n>>> > > >   Hi,\n>>> > > >\n>>> > > >  we have a Fedora 10 server in SELinux enforcing mode setup \n>>> > > > running git-deamon and gitweb (with home grown SElinux policy).\n>>> > > >\n>>> > > >  Anyway now we find out you cannot do a 'push' over the basic git \n>>> > > > protocol, back to the server repository.\n>>> > >\n>>> > >  You can push over git://, but you get no authentication mechanism \n>>> > > so it's\n>>> > >   disabled by default.  It's only really useful if you trust \n>>> > > everyone who\n>>> > >   has IP access to the server.\n>>> >\n>>> >  How do go about I enabling it ?\n>>>\n>>>  You have to enable the receive-pack service.  You can either enable it \n>>> for\n>>>  all repositories by using the --enable=<service> option to git-daemon, \n>>> or\n>>>  on a per-repository basis by setting daemon.receivepack to true in the\n>>>  repositories that you want to enable push for.\n>>\n>> Okay I have added the following to 'config' :-\n>>\n>> [daemon]\n>>        receivepack = true\n>>\n>> and done an 'service xinetd restart' just in case, probably not needed.\n>>\n>> I have tried a 'git push git://.../repo' but it is hanging, btw I am \n>> using Cygwin on the client, and F10 on the server.\n>\n> What output do you get?\n\nNone.\n\n>  What version of git are you using (client and server)?\n\nServer: F10\n        git is version 1.6.0.6\n        git-daemon 1.6.0.6-3.fc10.i386\n\nClient: Cygwin\n        git is version 1.6.1.2\n\n> Do you get any output logged by the git daemon?\n\nI dont seem to have logging on at all. How do I enable it ?\nI am running git-daemon via xinetd\n\nAaron\n\n>> Trying to clone an empty repository also hangs. btw I have sucessfully \n>> cloned big repositories.\n>>\n>> Aaron\n>\n> -- \n> Julian\n>\n>  ---\n> Yes, but every time I try to see things your way, I get a headache. \n"},{"id":"111606","messageId":"1A83D14F3FC342B9A02B82C64AC080D8@HPLAPTOP","threadId":"18919","inReplyTo":"alpine.LNX.2.00.0904181632150.20139@reaper.quantumfyre.co.uk","subject":"push git: failing","fromName":"Aaron Gray","fromEmail":"aaronngray.lists@googlemail.com","sentAt":"2009-04-18T18:07:28Z","receivedAt":"2009-04-18T18:07:28Z","isPatch":false,"sender":{"key":"aaronngray.lists@googlemail.com","avatar":null},"body":"I am trying to get git to do a remote push, but it is intermittent, hanging \nsometimes, and not working others :-\n\n    Aaron Gray@AMD2500-PC /usr/src/test/gittest/hello-world\n    $ git push git://git.***/hello-world\n    Counting objects: 4, done.\n    Compressing objects: 100% (3/3), done.\n    Writing objects: 100% (3/3), 557 bytes, done.\n    Total 3 (delta 1), reused 0 (delta 0)\n    fatal: read error (Software caused connection abort)\n\nServer: F10\n        git is version 1.6.0.6\n        git-daemon 1.6.0.6-3.fc10.i386\n\nClient: Cygwin\n        git is version 1.6.1.2\n\n/var/log/messages :-\nApr 18 18:18:28 *** xinetd[29002]: START: git pid=3083 \nfrom=::ffff:212.19.110.144\nApr 18 18:18:28 *** git-daemon: [3083] Connection from 212.159.110.144:6008\nApr 18 18:18:28 *** git-daemon: [3083] Extended attributes (25 bytes) exist \n<host=git.***.org>\nApr 18 18:18:29 *** git-daemon: [3083] Request receive-pack for \n'/hello-world'\nApr 18 18:18:29 *** xinetd[29002]: EXIT: git status=0 pid=3083 \nduration=1(sec)\n\nAaron\n"}]}