For a new repository on the server:
git init --bare my-project.git
Then on your local machine:
git init && git remote add origin ssh://git@host:1234/home/git/my-project.git
Finally, to clone from a new machine:
git clone ssh://git@host:1234/home/git/my-project.git