Accessing the OnBoard Appliance and Connected Devices : Creating an SSH Tunnel

Creating an SSH Tunnel
An authorized user can access a native web application after creating an SSH tunnel using local port forwarding. An arbitrarily chosen TCP port number on the user’s host is forwarded to the IP address of a device managed by the OnBoard appliance.
The prerequisites are shown in the following list:
After the user creates the SSH tunnel and the user is authenticated, the user can launch a browser that runs the native web application on the device.
PuTTY on Windows and OpenSSH on Linux are some of the SSH clients available for creating an SSH tunnel. The feature works with SSH protocol v1 and v1. See http://www.openssh.com tor additional clients.
Common port numbers are: HTTP 80 and HTTPS 443
Our examples use port 443 for HTTPS for a connected device whose IP address is 10.10.1.181.
The example local TCP port number used is 8080. You can select a random number over 1000.
To use OpenSSH on a Linux workstation to create an SSH tunnel:
1.
$ ssh -l username -f -N -L 8080:10.10.1.181:443 onboard_IP_or_DNS_name
2.
$ ssh -1 -l username -L 8080:10.10.1.181:443 onboard_IP_or_DNS_name
3.
To use PuTTY on a Windows PC to create an SSH tunnel to a managed device:
1.
2.
In the Category pane, select Tunnels under Connection-SSH.
3.
a.
b.
In the Destination field, type the IP address of the device. Follow it with a colon then the port number of the service you want to access through the SSH tunnel.
c.
Click Add.
4.
5.
6.
Select SSH as the protocol.
7.
Click Open.
8.
To bring up a native web application after an SSH tunnel exists:
1.
2.
In the location bar enter http://localhost:portnumber where portnumber is the TCP port number you specified for forwarding when you created the tunnel.
http://localhost:8080
In this step, use the local port number you specified for forwarding. In the examples, we used 8080.
3.