SSH tunnelling: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 1: Line 1:
{{Draft}}
{{Draft}}
SSH tunnelling is a method which in the context of Compute Canada allows a user's computer to connect to a compute node on a cluster through an encrypted tunnel that is routed via the login node of this cluster. This technique allows graphical output of applications like a [[Jupyter | Jupyter notebook]] or [[Visualization|visualization software]] to be displayed transparently on the user's local workstation even while they are running on a compute node of a cluster.  
SSH tunnelling is a method which in the context of Compute Canada allows a user's computer to connect to a compute node on a cluster through an encrypted tunnel that is routed via the login node of this cluster. This technique allows graphical output of applications like a [[Jupyter | Jupyter notebook]] or [[Visualization|visualization software]] to be displayed transparently on the user's local workstation even while they are running on a compute node of a cluster.  
== Example for a job ==
<pre>
# License
export LM_PROJECT=
export CDLMD_LICENSE_FILE=1999@localhost
# Start the SSH tunnel
ssh -n -N -L 1999:flex.cd-adapco.com:1999 gra-login1 &
SSH1=$!
ssh -n -N -L 2099:flex.cd-adapco.com:2099 gra-login1 &
SSH2=$!
# Launch the code
<whatever>
# Stop the SSH tunnel
kill -9 $SSH1
kill -9 $SSH2
</pre>


== From Linux or MacOS X ==
== From Linux or MacOS X ==
cc_staff
318

edits