the -Xf is to forward X, and run in background (useful if you need to do multiple tunnels). this is just scratching the surface of possibilities, but it's sufficient for this tutorial.

if you'd like to secure your headless server (as I did), I suggest disabling password logins over ssh, and switch to using ssh keys. This link was very helpful, and it only took 3-4 minutes to perform the steps required to secure the connection.

also, you might want to enable a firewall on the machine. Luckily, Ubuntu 9.04 comes with ufw. let's open port 22 (ssh) and enable the firewall.

If your SSH port has been configured differently, adjust the port to your liking. Also, note that if we enabled the firewall before allowing ssh, it would freeze the connection. make sure to tell UFW you want SSH open first.

PS3MediaServer likes to run on port 5001 by default (though I always manually specify ports in the config), so you'll want to open that port up as well.