I need to give certain outside developers access to create Mercurial repositories on our server. However, I don't necessarily want them to have actual SSH logins to browse the server -- or at the least, I only want to create one SSH account. I like the idea that hg-ssh based solutions involve creating a single login exclusively for Mercurial usage, but I don't really understand the process of setting this up.
I know there's something about creating an authentication key for password-less authentication, but I don't really care about that; I'd just as soon have them enter a password. Regardless, I just need this setup ASAP with minimal server access?
You must use SSH keys if you want to use
hg-ssh
— the restricted shell is only triggered when you log in with a SSH key. Read the header inhg-ssh
for instructions on how to set it up:hg-ssh
use a feature of SSH where you can force execution of a command and only this command when a specific SSH key is used.If you configured a key to execute
/bin/echo "Hello, goodbye" and you start
ssh login@host /bin/ls` , the output will be "Hello, goodbye" and the connection will end.