~here: ssh remotecomputer
Password:
~there: hdid -stdinpass /Users/username/username.sparseimage
You should now type in your password, but be careful when you do this, your password will be echoed in plaintext. Type in your password, and then null terminate it (hit control-V then Shift-Control-@), then hit Return, and then Control-D. Your user directory will then be mounted in /Volumes/username/ (not your ~username directory, for some reason).
If anyone knows a better way to do this, please comment, I looked on the net but could only find this in dutch on a newsgroup.

