On Tue, Apr 12, 2011 at 8:15 AM, git_usr <[email protected]> wrote:

> I can access gitorious directly via port 80, but only because I've
> opened this port for testing.
> Normally it's closed at firewall as we only allow cert auth'd traffic
> for server via port 443.
> I (and others in team) work from office and home, so we need secure
> remote access.
>

Closing the firewall shouldn't pose a problem, since these requests will use
the loopback interface, which wouldn't normally be firewalled.


> I've tried changing the client/host urls in gitorious.yml to have /
> gitorious appended, but when doing 'git push origin master'
> I get error 'nodename nor servname provided, or not known'.
> Also I've previously tried using the static ip of the server, but this
> didn't fix problem.
> And I've just added git user to digest auth file without password for
> testing.
>

Aha, so you're running with a "sub-URI", that could explain these errors.
lib/gitorious/ssh/client.rb has a method `writable_by_query_uri` which
doesn't prepend that to the URI. What patches did you apply to Gitorious to
have it support this?


> I assume gitorious_auth.log replying with error:
> and: 'Executing read/write command for "git": "git-receive-pack
> 'myproject/myrepository.git'"
> shows that the right user (git, which is admin) is found by gitorious
> via its db?
>

Well, this is found in the "command" section of the entry in
~git/.ssh/authorized_keys, so no database lookup is performed there.

Cheers,
- Marius

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]

Reply via email to