Make sure you have set up passwordless SSH authentication to Oscar. If you haven't, please refer to this documentation page.
If you have Windows Subsystem for Linux (WSL) installed in your computer, you need to follow the instructions for Windows (PowerShell).
Step 3: Edit the SSH config file
Add the following to your SSH config file. Replace <username> with your Oscar username.
The config file is located at:
~/.ssh/config
The config file is located at:
If you have Windows Subsystem for Linux (WSL) installed in your computer, you need to follow the instructions for Windows (PowerShell).
Step 4: Connect to Oscar
Open the Command Palette in VS Code (Cmd+Shift+P on Mac, Ctrl+Shift+P on Windows/Linux)
Select Remote-SSH: Connect to Host…
Choose ccv-vscode-node from the list
Screenshot of a configuration dropdown in VS Code with "Remote-SSH: Connect to Host" highlighted.
Step 5: Initial Setup
Install and set up of VS Code
After a moment, VS Code will connect to the SSH server and set itself up.
After a moment, VS Code will connect to the SSH server and set itself up. You might see the Firewall prompt, please click allow.
A windows defender pop-up prompting the user to allow firewall connectsions through VS Code on public networks.
Step 6: Apply Recommended Settings
Do this once after your first connection. Without it, VS Code will try to index all files you have access to on Oscar, including large datasets which wastes resources on the shared node and slows things down for everyone.
Open a terminal in VS Code and run:
or manually create /users/$USER/.vscode-server/data/Machine/settings.json file with following contents
Then reconnect to VS Code for the settings to take effect:
Click the green >< icon in the bottom-left corner of VS Code
Select Connect to Host
Choose ccv-vscode-node
Important: What is VSCode Node For
The VSCode node is a shared resource with over 300 users active at any given time. It is intended for:
Editing files
Light terminal use
Browsing code
Do not run computationally intensive work (R, Python scripts, model training, etc.) directly on the VSCode node. These should be submitted as jobs to the cluster. Your processes will be automatically throttled if they exceed the per-user resource limits.
To run an interactive job on a compute node: interact -n 4 -m 16g -t 01:00:00
Use interact -h for list of options.
Note that when you launch an interactive job, your terminal processes go to the compute node but VSCode processes/extensions itself stays on the VSCode node.