Glad it works for you, though I want to understand this a bit more.
When you say you run post-review with a dev box, I assume you mean that it's
still Apache looking for the /var/www/.ssh/id_dsa, right? is that a
different install from the main install, or is it just that you're running
post-review *on* the dev box?
Is this happening with an Apache install, or using devserver? Also, are you
running mod_python or fastcgi/wsgi?
Does your Apache config have the SetEnv HOME line? If so, I'm surprised
we're seeing that behavior, but it would indicate that Mercurial is never
seeing what we've set it to, unlike Subversion and Git.
Christian Hammond - chip...@chipx86.com
Review Board - http://www.reviewboard.org
VMware, Inc. - http://www.vmware.com
On Tue, Aug 17, 2010 at 2:03 PM, Ryan Roemer <r...@ipstreet.com> wrote:
> I've been working with John on this, and we finally pounded out
> something that works. We are running Review Board 1.5 RC1. Say we
> have a code base repo with ssh string of: ssh://
> . To generalize, it took us something like this to get hosted SSH from
> Codebase working:
> SSH Directories
> For server setup on Ubuntu, Review Board is going to run as the Apache
> user 'www-data'. The Apache user's home (e.g., "$HOME") is '/var/www'
> and we're installing Review Board to '/var/www/reviewboard'. We have
> a private key named "id_dsa", that is uploaded (and passphrase-less)
> to Codebase. We installed id_dsa on the server as follows:
> * /var/www/.ssh/id_dsa
> * /var/www/reviewboard/data/.ssh/id_dsa
> (Actually with symlinks). I'm not sure if this was strictly
> necessary, but seemed the only combination to work. Skimming (really
> quickly) the code it seems that adding a repository with "ssh://" URL
> does a validation against '/var/www/reviewboard/data/.ssh/id_dsa', but
> using post-review on a dev. box causes actions on the server to use '/
> var/www/.ssh/id_dsa' (with the Mercurial API calls).
> Adding a Repository
> Then, when we add a repository, the relevant fields we set were:
> * Path: "ssh://some_u...@foo.codebasehq.com/path/to/repo.hg"
> * Username: "some_user"
> * Password: (Empty)
> And everything seems to work (from post-review through actual reviews
> on Review Board).
> Not sure if the above behavior is / will be different with newer
> versions of RB, but this is what got us through and actually hooked up
> with Codebase, so hope it helps!
> On Aug 13, 12:10 pm, John DeRosa <jo...@ipstreet.com> wrote:
> > On Aug 13, 2010, at 3:20 AM, Christian Hammond wrote:
> > > Try renaming id_rsa_ipstreet to just id_rsa. This is what paramiko is
> expecting to find in that directory.
> > > Christian
> > Done. Same thing happens.
> > John
> Want to help the Review Board project? Donate today at
> Happy user? Let us know at http://www.reviewboard.org/users/
> To unsubscribe from this group, send email to
> For more options, visit this group at
Want to help the Review Board project? Donate today at
Happy user? Let us know at http://www.reviewboard.org/users/
To unsubscribe from this group, send email to
For more options, visit this group at