Legacy post. This article was written between 2016 and 2018. Software versions, commands and services mentioned here may be outdated. Check the official documentation before running anything.
Tunneling iTunes server over SSH
iTunes server
Prerequisites
SSH Config
Check your SSH server config:
vim /etc/sshd_config
You need to have these parameters
AllowTcpForwarding yes
Router config
Don’t forget to forward the port
Restart the SSH daemon
sudo synoservicectl --restart sshd
Manual
Scripting
Create an RSA key
sudo synoservicectl --restart sshd
read + write chmod 600 Authorized_keys RSAAuthentication yes
sudo synoservicectl –restart sshd sudo chmod -R 755 /volume1/homes/YOUR_USER
http://www.uponmyshoulder.com/blog/2010/tunneling-itunes-through-ssh/
ssh -p 87 -N
dns-sd -P
| lsof -i -n | egrep ‘<ssh>’ |
| lsof -i tcp | grep ^ssh |
The following commands search for iTunes Home Sharing instances
dns-sd -B dns-sd -B _home-sharing._tcp dns-sd -B _daap._tcp