Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Getting git daemon to work with key+passphrase
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Erik Pukinskis  
View profile  
 More options May 7 2008, 8:09 pm
From: Erik Pukinskis <erikpukins...@gmail.com>
Date: Wed, 7 May 2008 17:09:20 -0700 (PDT)
Local: Wed, May 7 2008 8:09 pm
Subject: Getting git daemon to work with key+passphrase
Hello,

I'm trying to get gitorious up and running on forkolator.org.  Things
are going well, the front end is working, I figured out the task
queue, etc.  I'm stuck on a problem though:

When I try to push some changes up to my server, instead of asking for
the passphrase for my key, it asks me for g...@forkolator.org's
password.  I'm running the git daemon as root (I know, maybe a bad
idea?) by running script/git-daemon.   And it looks like my public key
is in /root/.ssh/authorized_keys.  That file looks like:

### START KEY 1 ###
command="gitorious erik",no-port-forwarding,no-X11-forwarding,no-agent-
forwarding,no-pty ssh-dss AAAAB3NzaC1kc3MAAA
etc...

I can push just fine to gitorious.org with the same key, so it must be
something wrong with my server configuration.  Does anyone have any
ideas what might be going wrong?

Or failing that... can anyone give me some guidance on where to look
debugging-wise?  I've spent most of the day poking around and haven't
had much luck.  My best guess is that it has something to do with
what's happening in the strainer class, and the SSH module, but I'm
not sure.

Thanks for any help you can offer!

Erik


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Johan Sørensen  
View profile  
 More options May 8 2008, 8:54 am
From: "Johan Sørensen" <jo...@johansorensen.com>
Date: Thu, 8 May 2008 14:54:00 +0200
Subject: Re: [gitorious] Getting git daemon to work with key+passphrase
Hi,

First off, don't run it as root. Really.

OK, so the git-daemon is for the git:// protocol only, you can't push
to it. Pushing is done over SSH. So, the command="gitorious erik" part
of the publickey entry is the one that does some sanity and permission
checking (aborting early if it fails), by running the gitorious bin
(so it needs to be somewhere in the ssh daemons $PATH, I symlink mine
from RAILS_ROOT/script/gitorious to /bin/gitorious), and passed your
username (which in turn is coupled to the publickey following it) and
the path to the repos you want to push to. It checks permissions by
asking the app for it, or aborts or gives the a-ok if everything is
fine.

By the way, I hope you'll be able to contribute back to Gitorious,
it's kinda weird there's already two forks (the other being
"appcast"), when I still consider gitorious to be pretty early on
feature wise. :)

>  Thanks for any help you can offer!

>  Erik

Cheers,
JS

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Erik Pukinskis  
View profile  
 More options May 11 2008, 10:22 am
From: Erik Pukinskis <erikpukins...@gmail.com>
Date: Sun, 11 May 2008 07:22:48 -0700 (PDT)
Local: Sun, May 11 2008 10:22 am
Subject: Re: Getting git daemon to work with key+passphrase

> OK, so the git-daemon is for the git:// protocol only, you can't push
> to it. Pushing is done over SSH. So, the command="gitorious erik" part
> of the publickey entry is the one that does some sanity and permission
> checking (aborting early if it fails), by running the gitorious bin
> (so it needs to be somewhere in the ssh daemons $PATH, I symlink mine
> from RAILS_ROOT/script/gitorious to /bin/gitorious), and passed your
> username (which in turn is coupled to the publickey following it) and
> the path to the repos you want to push to. It checks permissions by
> asking the app for it, or aborts or gives the a-ok if everything is
> fine.

Aahhhhh!  That makes sense.  That's working now, thanks!  I've been
keeping track of everything that needs to be done to set up Gitorious
and it's posted here:

http://erikonrails.wordpress.com/2008/05/11/how-to-get-gitorious-runn...

I'll add that stuff to the HACKING file as soon as I figure out the
ultrasphinx stuff and graph_generator, and the other bits and pieces I
have left to configure.

> By the way, I hope you'll be able to contribute back to Gitorious,
> it's kinda weird there's already two forks (the other being
> "appcast"), when I still consider gitorious to be pretty early on
> feature wise. :)

Yeah, I'd love not to fork Gitorious, and keep our source trees
synced, or at least keep them compatible with one another.  The only
reason to fork would be if you decide you don't want to use some of
the stuff I implement.

Anyway, thanks for writing all this great code for us to work with!
And sorry for the spam from running the Rspec tests.  I changed the
email address in my tree so it goes to me instead of you.  I wonder if
there's some way to have a TEST_EMAIL setting in gitorious.yml and use
that instead of hard-coding your email address into the fixtures.

Best,

Erik

Erik


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Johan Sørensen  
View profile  
 More options May 12 2008, 7:23 am
From: "Johan Sørensen" <jo...@johansorensen.com>
Date: Mon, 12 May 2008 13:23:17 +0200
Local: Mon, May 12 2008 7:23 am
Subject: Re: [gitorious] Re: Getting git daemon to work with key+passphrase

On Sun, May 11, 2008 at 4:22 PM, Erik Pukinskis <erikpukins...@gmail.com> wrote:
> email address in my tree so it goes to me instead of you.  I wonder if
> there's some way to have a TEST_EMAIL setting in gitorious.yml and use
> that instead of hard-coding your email address into the fixtures.

There's no reason to send out emails in the test (or development)
environment. That's the default too, so you must've changed it.

$ grep delivery_method config/environments/test.rb
config.action_mailer.delivery_method = :test

> Best,

> Erik

Cheers,
JS

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Erik Pukinskis  
View profile  
 More options May 12 2008, 1:57 pm
From: "Erik Pukinskis" <erikpukins...@gmail.com>
Date: Mon, 12 May 2008 10:57:31 -0700
Local: Mon, May 12 2008 1:57 pm
Subject: Re: [gitorious] Re: Getting git daemon to work with key+passphrase

On Mon, May 12, 2008 at 4:23 AM, Johan Sørensen <jo...@johansorensen.com> wrote:

>  There's no reason to send out emails in the test (or development)
>  environment. That's the default too, so you must've changed it.

>  $ grep delivery_method config/environments/test.rb
>  config.action_mailer.delivery_method = :test

Oh, I see.  I added a new delivery_method, which overrode that
setting.  Thanks for letting me know.

Erik


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google