Trouble getting to work Mercurial with Shared SSH

Pablo Olmos de Aguilera C. pablo at glatelier.org
Fri Jan 22 16:09:37 CST 2010


I'm going to start a small project and I finally found that Mercurial
was the best tool to do this. I'm going to work with one or more
friends so I needed a way to everyone could pull/push from the server.

I finally installed Mercurial in my shared hosting at Dreamhost
(thanks to make install-home) and it actually works. I also found that
the most confortable way to work is with ssh.

I don't have any problem to clone, push or pull changes from ssh (I
have my public ssh key in the authorized_files), but if I add another
public key (from a collaborator) they also have access and they
besides working with ssh, they have access to the server, something
that I don't want. And if I'm not mistaken, that's the idea of the
SharedSSH right? (maybe I understood something wrong from the begginng
and I'm wasting my time).

I have read the SharedSSH article like a million of times but I can't
seem to make hg-ssh or hg-login to work. In both cases the other user
can work with hg but also access the server.

I configured the authorized_keys like this to work with hg-ssh:

ssh-rsa [mykey] == My key comment
# using hg-ssh with a collaborator
command="hg-ssh
/home/user/dev.user.org/hg/repos/prueba",no-port-forwarding,no-X11-forwarding,no-agent-forwarding
ssh-rsa [hiskey] == His key comment

What I'm doing wrong?

I really tried to look for an answer and followed a couple of
tutorials, but without luck. I hope you can lead me to an answer :)

Regards,
-- 
Pablo Olmos de Aguilera Corradini - @PaBLoX
http://www.glatelier.org/
http://www.chilemoz.org/
http://friendfeed.com/pablox/
http://www.linkedin.com/in/pablooda/
Linux User: #456971 - http://counter.li.org/


More information about the Mercurial mailing list