Accessing VSCode from Non-Brown compliant networks
Install the Remote Development extension pack for VSCode
Open VSCode settings
On Windows/Linux - File > Preferences > Settings
On macOS - Code > Preferences > Settings
Search for symlink and make sure the symlink searching is unchecked
3. Under VSCode settings, search for remote ssh timeout and manually enter a timeout value i.e. 50s. It should give you enough time to complete 2-Factor Authentication.
4. Edit the ~/.ssh/config file on your local machine, add the following lines. Replace <username> with your Oscar username.
6. In VSCode, select Remote-SSH: Connect to Host… and after the list populates select ccv-vscode-node
When prompted in VSCode, please enter your Brown password and complete the DUO authentication. After that, wait about 30 seconds and VSCode should connect to Oscar.
# Jump box with public IP address
Host jump-box
HostName ssh8.ccv.brown.edu
User <username>
# Target machine with private IP address
Host ccv-vscode-node
HostName vscode1
User <username>
ProxyCommand ssh -q -W %h:%p jump-box


If you have an existing virtual environment, proceed to step 2. Otherwise, to create a new virtual environment:
$ python3 -m venv my_env
$ source my_env/bin/activate
#Install packages manually or from requirements.txt file
$ pip install -r requirements.txt2. Search for Python.VenvPath as shown in the picture below:
3. VSCode expects you to have multiple virtual environments for each of your different python projects, and it expects you to put them all in the same directory. Pointing to the parent directory lets it scan and find all expected virtual environments, and then you can easily toggle between them in interface.
4. Once you have the virtual environment selected, the debugging capabilities should work.
You can access Oscar's file-system remotely from Visual Studio Code (VS Code). Note that access of Oscar from VS Code is still considered experimental, and as such, 24x7 support is not available.
September 10, 2023: Some users have reported issues while connecting to the Oscar VS Code remote extension. This is due to a recent change introduced by VS Code. To address this issue
Ctrl (cmd on Mac) + Shift + P > Remote-SSH: Settings
Disable the Remote.SSH: Use Exec Server option
To use VS Code you will need to be connected to the VPN. Please install the before proceeding.
Install the for VS Code:
Open VS Code settings and uncheck symlink:
Code > Preferences > Settings
File > Preferences > Settings
Search for symlink and make sure the symlink searching is unchecked
Make sure you have set up passwordless SSH authentication to Oscar. If you haven't, please refer to this .
Edit the config file:
The config file is located at:
~/.ssh/config
The config file is located at:
Edit the config file on your local machine, add the following lines. Replace <username> with your Oscar username.
September 10, 2023: Some users have reported issues while connecting to the Oscar VSCode remote extension. This is due to a recent change introduced by VSCode. To address this issue
In VS Code, select Remote-SSH: Connect to Host… and after the list populates select ccv-vscode-node
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.
Connect to VS Code first.
You can either create a symlink via the ln command below,
or manually create /users/$USER/.vscode-server/data/Machine/settings.json file with following contents
Click the green icon "Open a Remote Window" in the bottom left corner of VS Code Window. Then click "Connect to Host" in the drop down list.
2. Select the ccv-vscode-node option to connect to Oscar.
C:\Users\<uname>\.ssh\config# Jump box with public IP address
Host jump-box
HostName poodcit4.services.brown.edu
User <username>
# Target machine with private IP address
Host ccv-vscode-node
HostName vscode1
User <username>
ProxyCommand ssh -q -W %h:%p jump-boxCtrl (cmd on Mac) + Shift + P > Remote-SSH: Settings
Disable the Remote.SSH: Use Exec Server optioncp -v /gpfs/runtime/opt/vscode-server/ccv-vscode-config/settings.json /users/$USER/.vscode-server/data/Machine/settings.json{
"files.watcherExclude": {
"**/.git/objects/**": true,
"**/.git/subtree-cache/**": true,
"**/node_modules/**": true,
"/usr/local/**": true,
"/gpfs/home/**": true,
"/gpfs/data/**": true,
"/gpfs/scratch/**": true
},
"search.followSymlinks": false,
"search.exclude": {
"**/.git/objects/**": true,
"**/.git/subtree-cache/**": true,
"**/node_modules/**": true,
"/usr/local/**": true,
"/gpfs/home/**": true,
"/gpfs/data/**": true,
"/gpfs/scratch/**": true
}
}










