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

Re: git & ssh on F10 server

From
AGAaron Gray <aaronngray.lists@googlemail.com>
Date
Apr 18, 2009, 15:12 UTC
Message-ID
<DD909F216D254CDAB2A0C0847AEB75C0@HPLAPTOP>
In-Reply-To
<alpine.LNX.2.00.0904171812330.8773@reaper.quantumfyre.co.uk>
Show 22 quoted lines
> On Fri, 17 Apr 2009, Aaron Gray wrote:
>>>  On Fri, 17 Apr 2009, Aaron Gray wrote:
>>>
>>> >  Hi,
>>> >
>>> >  we have a Fedora 10 server in SELinux enforcing mode setup running 
>>> > git-deamon and gitweb (with home grown SElinux policy).
>>> >
>>> >  Anyway now we find out you cannot do a 'push' over the basic git 
>>> > protocol, back to the server repository.
>>>
>>>  You can push over git://, but you get no authentication mechanism so 
>>> it's
>>>  disabled by default.  It's only really useful if you trust everyone who
>>>  has IP access to the server.
>>
>> How do go about I enabling it ?
>
> You have to enable the receive-pack service.  You can either enable it for 
> all repositories by using the --enable=<service> option to git-daemon, or 
> on a per-repository basis by setting daemon.receivepack to true in the 
> repositories that you want to enable push for.
Okay I have added the following to 'config' :-
[daemon]
        receivepack = true
and done an 'service xinetd restart' just in case, probably not needed.

I have tried a 'git push git://.../repo' but it is hanging, btw I am using Cygwin on the client, and F10 on the server.

Trying to clone an empty repository also hangs. btw I have sucessfully cloned big repositories.

Aaron
Show 45 quoted lines
>>> >  So now am trying to get git to work over ssh. The repositories are 
>>> > located /pub/git/*/.git
>>> >
>>> >  Basic attempts using BerliOS'es instructions for client end failed.
>>> >
>>> >
>>> > 
>>> > http://developer.berlios.de/docman/display_doc.php?docid=1812&group_id=2
>>> >
>>> >  Could someone please help us with this.
>>> >
>>> >  Aaron
>>>
>>>  You haven't said what commands you tried, nor what the errors you 
>>> received
>>>  were, so it's a bit hard to say what went wrong ...
>>>
>>
>> git push ssh://ang@git.site.org/pub/git/llvm/trunk milestone1
>> Pushing to ssh://ang@git.site.org/pub/git/llvm/trunk
>> fatal:  exec ssh failed.
>> fatal:  The remote end hung up unexpectedly
>
> Sounds like git didn't find ssh on your path.
> What version of git is this btw?
>
>> A clone failed simularly
>>
>> I was expecting it to ask for a password. Should I try a DSA certificate 
>> ?
>>
>> Thanks,
>>
>> Aaron
>>
>>
>
> -- 
> Julian
>
>  ---
> "It's my cookie file and if I come up with something that's lame and I 
> like it,
> it goes in."
> -- karl (Karl Lehenbauer) 
Previous: Aaron GrayNext: Julian Phillips
Message 5 of 9 in “git & ssh on F10 server”
  1. Aaron GrayApr 17, 2009
  2. Julian PhillipsApr 17, 2009
  3. Julian PhillipsApr 17, 2009
  4. Aaron GrayApr 17, 2009
  5. Aaron GrayApr 18, 2009
  6. Julian PhillipsApr 18, 2009
  7. Aaron GrayApr 18, 2009
  8. push git: failingAaron Gray, Apr 18, 2009
  9. Aaron GrayApr 18, 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.