Skip to content

umich-biostatistics/cluster_vscode_tunnel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

VScode Tunnel to Great Lakes Compute Node

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.

Usage

  1. Copy/clone the scripts to Great Lakes

  2. Run the initialize.sh script, optionally specifying the provider:

    bash initialize.sh [-gh|--github] [-ms|--microsoft]
  3. Follow the output and login prompts to setup the tunnel with the selected provider

  4. UPDATE THE ACCOUNT DIRECTIVE in vscode_tunnel.sh and submit via sbatch

    sbatch vscode_tunnel.sh
  5. Open VScode on your local machine and connect to the tunnel using GitHub Authentication

  6. Once finished, disconnect from the tunnel and cancel the job on the cluster using scancel {JOB_ID}

Credit

This process was derived from Harvard's FASRC "VSCode Remote Development via SSH and Tunnel"

About

Creating a vscode tunnel for use on a cluster compute node.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages