Services on a compute node
JupyterLab, RStudio or any other web app on a compute node, used from the browser on your laptop: why the usual recipe is not secure, and five ways that are.
This section is about running a web app, such as JupyterLab or RStudio, on a compute node, and using it from the browser on your laptop. It starts with why the usual recipe leaves your account open to everyone else on the cluster, and which of the ways that follow to use, then goes through each of them, with scripts you can run.
| Title | Description |
|---|---|
| Running a service on a compute node | Have you ever wanted to run JupyterLab or RStudio on a compute node of an HPC? The usual recipe leaves the connection unencrypted, and your account open to everyone else on the cluster. |
| HTTPS with a self-signed certificate | The easiest fix to understand for the unencrypted last mile: make JupyterLab speak HTTPS itself, with a certificate you make once. It works, and the same trick applies anywhere, but it is tedious, and for RStudio it gets complicated. |
| SSH over srun | The fix specific to Slurm: JupyterLab or RStudio listens only on the compute node’s loopback, and one SSH session reaches it, carried by srun. No certificate, no third party, and the same for any app. The one I recommend. |
| Through a relay you run | Turning the connection around: the job connects out to a server of yours with ssh -R, and your laptop connects to the same server. Everything is inside SSH, but you need that server, and it sees your traffic. |
| Through Microsoft Dev Tunnels | A relay you don’t have to run: the job connects out to Microsoft’s Dev Tunnels, and you open an https URL after signing in with the same GitHub or Microsoft account. Microsoft sees your traffic. |
| Through a Cloudflare quick tunnel | No account and no setup: the job connects out to Cloudflare and gets a public trycloudflare.com URL. Anyone with the URL reaches your app, so only its token protects it. For a quick look, not for regular use. |
No matching items