Using ssh to listen to Amahitunes

From Amahi Wiki
Revision as of 12:43, 21 December 2008 by Red Eyes (talk | contribs) (New page: =Using SSH tunnelling to listen to Amahitunes= ===But why?=== Having successfully managed to use SSH to access and manage my HDA from work I got thinking about how to actually do somethin...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Using SSH tunnelling to listen to Amahitunes

But why?

Having successfully managed to use SSH to access and manage my HDA from work I got thinking about how to actually do something useful and make my day a tad more pleasurable and learn something about SSH tunnelling to boot. So I set about using Apple iTunes to listen to music stored on my HDA.


What do I need?

  • Your HDA needs to be running an SSH server
  • Your router needs to forward an arbitary port to port 22 on your server
  • Download and install Putty on your Windows machine. Download it from here: [1]
  • Download and install Rendezvous Proxy from here: [2]

How do I create the tunnel?

We are going to use Putty to create a SSH connection and tunnel to your HDA. PuTTY is an SSH and telnet client, developed originally by Simon Tatham for the Windows platform. PuTTY is open source software that is available with source code and is developed and supported by a group of volunteers.

Start putty.exe on you Windows machine and you will be presented with the window below. If the right hand side shows anything different then highlight Sessions on the left to return to the shown display. Enter the hostname for your HDA: yourhdaname.yourhda.com and the port on your router that is forwarded to port 22 on your HDA, I havea used 2002 in this example but any unused port should suffice. Make sure SSH radio button is selected. Finally give your session an easy to remember name and type it in the Saved Sessions box and press Save

Red-P01.png

Now I use key encryption to authorise with my SSH Server. The key is entered by selection the Auth menu item and pointing Putty at the key-file. (I intend to write a seperate article on this). In the meantime login with your username and password. make sure it's a secure password to defeat in brute force attacks on your server. Port forwarding from a random port to 22 offers some security against brute force attacks.

Red-P02.png