- SSH to your SLURM submission node (which has a public IP submissionnode.umd.edu) using a terminal application and request a compute node (using srun).
- Run the command hostname to see the internal IP of the compute node. This will be computenode.umd.edu
-
Add the following onto your local computer's SSH config. This file is usually stored on ~/.ssh/config
Host submissionnode
Hostname submissionnode.umd.edu
User gihan
Host computenode
Hostname computenode.umd.edu
User gihan
ProxyCommand ssh -W %h:%p submissionnode
-
Now you can connect to the compute node directly using remote explorer in VScode and use the debugger as usual.
Last edit 2022-Oct-17