Nothing needs to be customized. You just need to make this ssh access. Plus, you need to deal with unix-users, so that they have enough rights to change files.
You may also need to configure trusted users. To do this, read the hgrc manual in the trusted section - this will work if you do not enable the ACL module.