From: Sitaram Chamarty <sitaramc@gmail.com>
To: brizly vaan van Ulciputz <brizly@freenet.de>
Cc: git@vger.kernel.org
Subject: Re: setup gitosis on Fedora 11
Date: Sat, 18 Jul 2009 07:14:48 +0530 [thread overview]
Message-ID: <2e24e5b90907171844o11eb6699m929e3c0df621ef67@mail.gmail.com> (raw)
In-Reply-To: <1247867114.2384.15.camel@brizlyMobil>
On Sat, Jul 18, 2009 at 3:15 AM, brizly vaan van
Ulciputz<brizly@freenet.de> wrote:
> i tried to setup gitosis on a Fedora 11 system,
> since i dont seem to be the only person having trouble here,
> i am asking here now.
>
> someone pasted that:
> http://paste.org/pastebin/view/9154
> and that's just the way i did it and the way i end in :-(
>
> with the only difference i was using another 'tutorial'
> http://www.shakthimaan.com/installs/gitosis.html
>
> i tried a bit an sometimes ended in the prompt to enter password for
> gitosis@server after "git push..." No idea what to do.
>
> I asked #git and #fedora on freenode, was referred to this list.
> So can anyone gimme a hint?
line 12 in the first pastebin (and there's no need to use pastebins for a few
lines on the mailing list; it's on #git that is really needed!) says
ERROR:gitosis.serve.main:Repository read access denied
This means you got past ssh issues, which is further along than most people
who come to #git with gitosis problems :-)
This error could mean one of the following:
(1) you're using the wrong key/repo pair. Of course your key *is* in
gitosis.conf but the repo you're trying to push to isn't, or doesnot
list you as one of the valid users
(2) your gitosis.conf is all correct, but you forgot the "chmod" somewhere
above, and the post-update hook never ran, so the real gitosis.conf (which
gitosis uses -- this is ~git/.gitosis.conf) doesn't have the same data
I also don't like that howto; it appears to be doing everything on one
machine, with the same userid, so people who don't grok ssh very well will
still have trouble even after all this is done to translate that knowledge to a
real deployment.
Bottom line: here's what should match for that error to go away:
- the public key corresponding to the private key your client-side ssh is
using
- must match *exactly* one of the public keys in the server-side
~git/.ssh/authorized_keys
[this is probably OK in your case, but please check there is *exactly one*. I
have a vague memory of seeing a case when someone adds a key twice with
different usernames in error. Ssh picks up perhaps the first one, while your
gitosis.conf talks about the second one...]
and
- the name after "gitosis-init" on the pubkey line that matched above
- must match a username in ~git/.gitosis.conf (which is a symlink to
something but never mind)
and
- this username must be mentioned in the members= line of some section in
gitosis.conf which also has "writable = my-first-repo"
You can check *all* of this by looking at ~git/.gitosis.conf and
~git/.ssh/authorized_keys on the server and ~/.ssh/id_[rd]sa.pub on your
client
next prev parent reply other threads:[~2009-07-18 1:50 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-17 21:45 setup gitosis on Fedora 11 brizly vaan van Ulciputz
2009-07-18 1:44 ` Sitaram Chamarty [this message]
2009-07-18 7:40 ` brizly vaan van Ulciputz
2009-07-19 1:29 ` Sitaram Chamarty
2009-07-20 5:10 ` brizly vaan van Ulciputz
2009-07-20 5:43 ` Shakthi Kannan
[not found] ` <ed88cb980907171752j5c61b3dfvd07298ac436abe38@mail.gmail.com>
2009-07-18 7:54 ` brizly vaan van Ulciputz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2e24e5b90907171844o11eb6699m929e3c0df621ef67@mail.gmail.com \
--to=sitaramc@gmail.com \
--cc=brizly@freenet.de \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).