Mac OS X 10.4 Tiger

Let’s assume you are absent and wish to access an internal host with a particular service running on port 8080, for example an internal Web server, via the Internet. One way would be to establish a VPN connection. However sometimes this is not practical.

Well, in that case use SSH to establish an encrypted tunnel especially for the connection to that service. On Mac OS X 10.4 Tiger and later OpenSSH is installed. Open Terminal.app in the Utilities folder and please issue the following command:

ssh -L 8080:host.cpfs.mpg.de:8080 userName@holmes1.cpfs.mpg.de

(replace userName with your CPFS username, host with the hostname of the service, and the port number 8080 with the service port number). Let’s assume the service is a Web service. Then, open Safari.app and use the URL

http://localhost:8080

to connect to that service running on host.cpfs.mpg.de.