It's ever easier in Mercurial for single user (with shell-access to repo): just read Shared SSH wiki-page and Creating Repositories Over SSH tip and have remote SSH-repository
Just one note: in Mercurial world ssh://hostname/path/to/repo
and ssh://hostname//path/to/repo
give you access to repositories in very different locations