After (mostly unsuccessful) Googling for how to stream iTunes over SSH, I finally tracked down the difficult bits myself and put together a
four three-line script:
#!/bin/sh dns-sd -P "Home iTunes" _daap._tcp local 3689 localhost.local. \ 127.0.0.1 "Arbitrary text record" & trap "kill $!" 0 1 2 15 ssh -C -N -L 3689:localhost:3689 email@example.com
Update: I’ve cut this down to three lines using trap
Update: You can do this with iPhoto too.
Update: Works with OS X 10.7 Lion.