Tunneling iTunes through SSH

I was looking for a way to listen to my Christmas playlist running on my Mac Mini at home while at work. Through a little bit of searching I found this post ‘Tunneling iTunes through SSH‘.

I took it a bit further and added the following to my ~/.ssh/config

Host itunes-home
  LocalForward 3690 localhost:3689

This allows me to start up my tunnel with a simple

$ ssh itunes-home

and then run the command in the ‘Tunneling iTunes through SSH

dns-sd -P iTunesServer _daap._tcp local 3690 localhost.local &

and then I see iTunes server in my shared libraries list.

2013-12-11 at 8.35 AM











Now I can listen to my Christmas music at work without having to copy it to my laptop!