Using SSH TunnelsThursday, October 5, 2017 12:23 PM
Several of the applications on BlueHive (ipython, spark, Matlab MDCE, TurboVNC, etc...) use a client/server architecture. While you can run both the client and the server within the bluehive environment, you may prefer to run the client on your local machine. As the compute nodes are not directly accessible from your local machine, you will need to establish an SSH tunnel.
Let's say you want to access a python notebook running on a compute node (bhc0001) on port 8080. You will need to select a local port as the source for the tunnel. Any open port will do, but lets use port 8081 in this example.
From the MobaXterm terminal, we can
ssh -N -L 8081:bhc0001:8080 YourNetIDHere@bluehive.circ.rochester.edu
To setup a tunnel within putty, navigate to the Connection/SSH/Tunnels section of the configuration menu, and setup the local port (Source port) to be 8081, and the Destination to be bhc0001:8080.
Whether we use MobaXTerm or Putty, requests sent to our local port 8081 should be forwarded to port 8080 on bhc0001.
Then we would open a browser on our local machine and point it to
All of the traffic between our local browser and the compute node will be encrypted and sent through the SSH tunnel on bluehive.
To close the tunnel, just terminate the MobaXTerm or putty session.