This repo contains two scripts that assist with creating a private LMOD module for the vscode cli tool and initializing a remote tunnel using GitHub or Microsoft authentication on a SLURM cluster.
The vscode_tunnel.sh
script can be submitted to sbatch with the deisred resources to connect to a compute node and start the tunnel.
-
Copy/clone the scripts to Great Lakes
-
Run the
initialize.sh
script, optionally specifying the provider:bash initialize.sh [-gh|--github] [-ms|--microsoft]
-
Follow the output and login prompts to setup the tunnel with the selected provider
-
UPDATE THE ACCOUNT DIRECTIVE in
vscode_tunnel.sh
and submit via sbatchsbatch vscode_tunnel.sh
-
Open VScode on your local machine and connect to the tunnel using GitHub Authentication
-
Once finished, disconnect from the tunnel and cancel the job on the cluster using
scancel {JOB_ID}
This process was derived from Harvard's FASRC "VSCode Remote Development via SSH and Tunnel"