User Tools

Site Tools


slurm:ai

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
slurm:ai [2021/11/01 16:08]
chudler
slurm:ai [2022/04/04 10:58] (current)
chaochunh fix typos and add code snippet for interactive jupyter notebook
Line 168: Line 168:
 Make a new ssh connection to tunnel your traffic. The format will be something like: Make a new ssh connection to tunnel your traffic. The format will be something like:
  
-''​%%ssh -N -L 8888:###​.###​.###​.###:####​ user@fe01.ai.cs.uchicago.edu.edu%%''​+''​%%ssh -N -L 8888:###​.###​.###​.###:####​ user@fe01.ai.cs.uchicago.edu%%''​
  
 This command will appear to hang since we are using the -N option which tells ssh not to run any commands including a shell on the remote machine. This command will appear to hang since we are using the -N option which tells ssh not to run any commands including a shell on the remote machine.
Line 182: Line 182:
   - Make a new ssh connection with a tunnel to access your notebook   - Make a new ssh connection with a tunnel to access your notebook
   - ''​%%ssh -N -L 8888:​$NODEIP:​$NODEPORT user@fe01.ai.cs.uchicago.edu%%''​ using the values not variables   - ''​%%ssh -N -L 8888:​$NODEIP:​$NODEPORT user@fe01.ai.cs.uchicago.edu%%''​ using the values not variables
-  - This will make an ssh tunnel on your local machine that fowards ​traffic sent to ''​%%localhost:​8888%%''​ to ''​%%$NODEIP:​$NODEPORT%%''​ via the ssh tunnel. This command will appear to hang since we are using the -N option which tells ssh not to run any commands including a shell on the remote machine.+  - This will make an ssh tunnel on your local machine that forwards ​traffic sent to ''​%%localhost:​8888%%''​ to ''​%%$NODEIP:​$NODEPORT%%''​ via the ssh tunnel. This command will appear to hang since we are using the -N option which tells ssh not to run any commands including a shell on the remote machine.
   - Open your local browser and visit: ''​%%http://​localhost:​8888%%''​   - Open your local browser and visit: ''​%%http://​localhost:​8888%%''​
  
 +Copy the following code snippt to the interactive node directly: ​
 +<​code>​
 +unset XDG_RUNTIME_DIR
 +NODEIP=$(hostname -i)
 +NODEPORT=$(( $RANDOM + 1024))
 +echo "ssh command: ssh -N -L 8888:​$NODEIP:​$NODEPORT `whoami`@fe01.ai.cs.uchicago.edu"​
 +jupyter-notebook --ip=$NODEIP --port=$NODEPORT --no-browser
 +</​code>​
  
 ====== Contribution Policy ===== ====== Contribution Policy =====
 This section can be ignored by most people. [[techstaff:​aicluster-admin|If you contributed to the cluster or are in a group that has you can read more here]]. This section can be ignored by most people. [[techstaff:​aicluster-admin|If you contributed to the cluster or are in a group that has you can read more here]].
  
/var/lib/dokuwiki/data/pages/slurm/ai.txt · Last modified: 2022/04/04 10:58 by chaochunh