A streamlined solution for running interactive SSH sessions on SLURM compute nodes, designed for seamless integration with VSCode Remote-SSH and other development tools.
git clone https://github.com/aihpi/interactive-slurm.git
cd interactive-slurm
./setup.shThe setup script automatically:
- ✅ Generates SSH keys and configures access
- ✅ Installs scripts on your HPC cluster
- ✅ Sets up VSCode integration
- ✅ Handles container options if needed
ssh slurm-cpuThat's it! You now have access to a compute node with:
- VSCode Remote-SSH support
- Automatic updates (runs in background)
- Full SLURM integration
- Optional container support
- Multiple GPU types (A30 and H100)
- 🚀 One-Command Setup: Fully automated installation
- 🆙 Auto-Updates: Scripts update themselves automatically from GitHub
- 🎯 VSCode Ready: Perfect Remote-SSH integration
- 🔧 Simple Management: Use
remotecommands for all operations - 🔐 Secure: Automatic SSH key management
- 🖥️ Multiple GPU Types: Support for A30 (gpuswap) and H100 GPUs
- ⚡ H100 Performance: Access to high-performance H100 GPUs on aisc-shortrun partition
- Access to a SLURM-managed HPC cluster
- SSH access to the cluster's login node
- VSCode with Remote-SSH extension (optional)
ssh slurm-cpu- Install Extension: Get "Remote-SSH" from VSCode marketplace
- Connect: Press
Ctrl/Cmd+Shift+P→ "Remote-SSH: Connect to Host" - Select Host: Choose
slurm-cpufrom the list - Start Coding: VSCode connects to the compute node automatically!
# List running jobs
remote list
# Switch to A30 GPU environment
remote gpuswap
# Reserve H100 GPUs (default: 1 GPU)
remote h100
# Reserve multiple H100 GPUs
remote h100 4
# Use H100 with container image
remote h100 2 /path/to/container.sqsh
# Exit all interactive sessions
remote exit
# Check for updates
remote check
# Update to latest version
remote updateAutomatic: When you connect, scripts check for updates in the background (once daily) and apply them automatically.
Manual Control:
# Check for updates
remote check
# Force update
remote updateConnection takes too long (>5 minutes):
# Check job status
ssh login.hpc.yourcluster.edu
squeue --meVSCode connection fails:
- Test command line first:
ssh slurm-cpu - Check VSCode timeout settings:
remote.SSH.connectTimeout ≥ 300 - View logs: VSCode → Output → Remote-SSH
Get help:
remote help- Testing Guide: TESTING.md
- Technical Details: DEV.md
- Change Log: CHANGELOG.md
Interactive SLURM builds upon vscode-remote-hpc with enhanced automation and auto-update capabilities.