git & ssh on F10 server
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.
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
Quoted 5 lines · Aaron Gray
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.
Quoted 9 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 ...
Signature · 4 lines
Julian --- 10.0 times 0.1 is hardly ever 1.0.
Quoted 3 lines · Aaron Gray
Julian,
Thanks for the response.
Not a problem, but please keep the mailing list on the CC ...
Quoted 7 lines
Quoted 7 lines · Aaron Gray
Quoted 6 lines
Hi,
we have a Fedora 10 server in SELinux enforcing mode setup running git-deamon and gitweb (with home grown SElinux policy).
Quoted 8 lines
Quoted 6 lines
Quoted 2 lines
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.
Quoted 12 lines
Quoted 12 lines
Quoted 11 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
Quoted 8 lines
Quoted 3 lines
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://[email protected]/pub/git/llvm/trunk milestone1 Pushing to ssh://[email protected]/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?
Quoted 9 lines
A clone failed simularly
I was expecting it to ask for a password. Should I try a DSA certificate ?
Thanks,
Aaron
Signature · 6 lines
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)
F10
git is version 1.6.0.6
git-daemon 1.6.0.6-3.fc10.i386Cygwin git is version 1.6.1.2
Aaron
Quoted 18 lines · Aaron Gray
Quoted 4 lines
Julian,
Thanks for the response.
Not a problem, but please keep the mailing list on the CC ...
Quoted 10 lines
Quoted 10 lines · Aaron Gray
Quoted 8 lines
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.
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
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.
Thanks, I'll make a note of that.
Quoted 18 lines
Quoted 18 lines
Quoted 17 lines
Quoted 7 lines
So now am trying to get git to work over ssh. The repositories are
located /pub/git/*/.gitBasic attempts using BerliOS'es instructions for client end failed.
Quoted 5 lines
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 ...
Quoted 7 lines
Quoted 4 lines
git push ssh://[email protected]/pub/git/llvm/trunk milestone1 Pushing to ssh://[email protected]/pub/git/llvm/trunk
fatal: exec ssh failed. fatal: The remote end hung up unexpectedlySounds like git didn't find ssh on your path.
What version of git is this btw?
Yep. No ssh installed in Cygwin.
Thanks Julian, I am getting lax these days !
Aaron
Quoted 11 lines · Aaron Gray
Quoted 10 lines
Quoted 10 lines · Aaron Gray
Quoted 8 lines
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.
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
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
Quoted 43 lines
Quoted 18 lines
Quoted 9 lines
Quoted 9 lines
So now am trying to get git to work over ssh. The repositories are
located /pub/git/*/.gitBasic attempts using BerliOS'es instructions for client end failed.
http://developer.berlios.de/docman/display_doc.php?docid=1812&group_id=2
Quoted 8 lines
Quoted 3 lines
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 ...Quoted 4 lines
git push ssh://[email protected]/pub/git/llvm/trunk milestone1 Pushing to ssh://[email protected]/pub/git/llvm/trunk
fatal: exec ssh failed. fatal: The remote end hung up unexpectedlySounds like git didn't find ssh on your path.
What version of git is this btw?Quoted 9 lines
A clone failed simularly
I was expecting it to ask for a password. Should I try a DSA certificate ?
Thanks,
Aaron
Signature · 6 lines
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)
Quoted 24 lines · Aaron Gray
Quoted 17 lines · Aaron Gray
Quoted 16 lines
Quoted 15 lines · Aaron Gray
Quoted 8 lines
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.Quoted 6 lines
Quoted 1 line
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.
Quoted 8 lines
Okay I have added the following to 'config' :-
[daemon]
receivepack = trueand 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.
What output do you get? What version of git are you using (client and server)?
Do you get any output logged by the git daemon?
Quoted 3 lines
Trying to clone an empty repository also hangs. btw I have sucessfully cloned big repositories.
Aaron
Signature · 4 lines
Julian --- Yes, but every time I try to see things your way, I get a headache.
push git: failing
I am trying to get git to do a remote push, but it is intermittent, hanging sometimes, and not working others :-
Aaron Gray@AMD2500-PC /usr/src/test/gittest/hello-world
$ git push git://git.***/hello-world Counting objects: 4, done. Compressing objects: 100% (3/3), done. Writing objects: 100% (3/3), 557 bytes, done. Total 3 (delta 1), reused 0 (delta 0) fatal: read error (Software caused connection abort)
Server: F10
git is version 1.6.0.6
git-daemon 1.6.0.6-3.fc10.i386Client: Cygwin
git is version 1.6.1.2
/var/log/messages :-
Apr 18 18:18:28 *** xinetd[29002]: START: git pid=3083 from=::ffff:212.19.110.144 Apr 18 18:18:28 *** git-daemon: [3083] Connection from 212.159.110.144:6008 Apr 18 18:18:28 *** git-daemon: [3083] Extended attributes (25 bytes) exist <host=git.***.org> Apr 18 18:18:29 *** git-daemon: [3083] Request receive-pack for '/hello-world' Apr 18 18:18:29 *** xinetd[29002]: EXIT: git status=0 pid=3083 duration=1(sec)
Aaron
Quoted 30 lines · Aaron Gray
Quoted 29 lines
Quoted 18 lines · Aaron Gray
Quoted 16 lines
Quoted 15 lines · Aaron Gray
Quoted 8 lines
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.Quoted 8 lines
Quoted 1 line
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' :-
Quoted 8 lines
Quoted 6 lines
[daemon]
receivepack = trueand 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.What output do you get?
None.
Quoted 1 line
What version of git are you using (client and server)?
Server: F10
git is version 1.6.0.6
git-daemon 1.6.0.6-3.fc10.i386Client: Cygwin
git is version 1.6.1.2
Quoted 1 line
Do you get any output logged by the git daemon?
I dont seem to have logging on at all. How do I enable it ? I am running git-daemon via xinetd
Aaron
Quoted 9 lines
Quoted 3 lines
Trying to clone an empty repository also hangs. btw I have sucessfully cloned big repositories.
Aaron
Signature · 4 lines
Julian --- Yes, but every time I try to see things your way, I get a headache.