Opening and Closing Shares via ssh

Might anyone have an idea on how to mount an xserve share via ssh, then close the share connection?

The document at http://manuals.info.apple.com/en/MacOSXServer10.2ForXServeSetup.PDF talks about using SSH is that any help?

man mount_afp

Basically, create a directory to be used as the mount point, then mount the server volume at that location.

mkdir /Volumes/somefolder
mount_afp afp://username:pass@someserver/someshare /Volumes/somefolder

Thanks Flying_Meat, I'll give this a shot. The course of action is to mount the server share so that I can make it a repository for taring a user template, then closing the share on the users desktop again. What I'd really like to be able to do is mount the share invisibly from the desktop, tar the user template and close the invisible share mount again.