An SSH Tunnel is an encrypted "pipe" between two machines, usually on different networks over the internet. You can almost think of it as a mini VPN. Traffic is directed down the tunnel via port forwarding on the client side.
You will need to know two bits of information, the internal ip address of the workstation running Indigo2 and the external of ip address of your router.
First we make sure your Indigo server has it's firewall set to allow incoming connection via the web and remote client. Those settings can be found here:
http://www.perceptiveautomation.com/php ... =7408#7408
Now lets set up SSH on the Indigo server.
Go to System Preferences | Sharing and then click the box next to Remote Login. Thats it.
Now you must configure your router to port forward SSH requests to the Indigo Server. Log in to your router, look for a section called "Port Forwarding" or something similar.
Once there you need to create a rule for SSH. These are the values to use for the rule:
Name: ssh
port #: 22
protocol: TCP
ip address: your Indigo server internal ip address
Make sure you enable the rule and save the changes.
If you don't know what your routers external ip address is now is a good time to look for it.
That is all that needs to be configured on the home network. Now the following will need to be done from your remote computer at work, school, relatives, etc... computer.
First lets make sure the connection can be established to the Indigo Server at home. Open up Terminal (Applications > Utilities > Terminal.app) and use the following command:
ssh <user>@<ip> (replace <user> with the login on your Indigo server and <ip> with your external ip address )
It should look something like this:
- Code: Select all
ssh snowjay@169.254.248.254
Press enter and you should be greeted with a password prompt. Type your password in and press enter. You should see something like:
- Code: Select all
Last login: Wed Sep 6 18:13:39 2006
Welcome to Darwin!
indigo2server:~ snowjay$
If that is the case you are connected to your home computer! Just type exit to close the connection and then quit out of Terminal. Now lets getting Indigo working.
You will need to download a little utility called SSH Tunnel Manager (SSHTM). It can be found:
http://www.macupdate.com/info.php/id/10128
The utility isn't absolutely needed as everything can be done via the command line but it makes it tons easier.
Once you have SSHTM download and installed open it up.
From the main window click the Configuration button and then click the + to add a new tunnel.
Choose a name for your tunnel. Login should be the login name of our Indigo server you used above, Host will be your external ip address and Port should be 22.
Now the port forwarding rules need to be defined.
Under Local Redirections you will see three fields. Port, LAN Host and Port. The first Port is the local port (workstation that you are at) that needs to be redirected. LAN Host is the ip address of your Indigo server and the second Port is the port the LAN Host will receive traffic on.
Keeping things simple and assuming your Indigo server is using an ip address of 192.168.1.101 your two rules should look like this:
for Indigo Remote Server
- Code: Select all
1176 192.168.1.101 1176
for Indigo Control Pages
- Code: Select all
8000 192.168.1.101 8000
Close that window to return to the main window and you should see your tunnel name with a play button next to it. Click the play button and after a few seconds a box should pop up asking for your password. Type in your password and click OK and you are good to go.
To now utilize the tunnel lets open up Safari and type in:
http://localhost:8000
If everything is set correctly you should be brought to your Indigo Control Pages.
If you have Indigo2 loaded on the workstation, start it up, select connect to remote server, for the address use localhost and click connect.
Thats it, all done. Hopefully this makes sense to somebody.
The tunnel can also be used for other applications like VNC, mail and just about anything else.