BYU

Office of Research Computing

We encountered problems with our infrastructure for several hours starting at about 4:25pm on Friday. The issues are now resolved. Your batch jobs may or may not have been impacted. See this email for details. Last Updated Friday, Apr 19 08:12 pm 2024

Remote Development with VS Code

Consider using VSCode w/ OnDemand instead.

Visual Studio Code has a remote SSH extension that makes editing, compiling, and running code on the supercomputer extremely simple; this tutorial demonstrates how to set it up on the supercomputer. Unfortunately, this extension contains some proprietary code, so it isn't available in the open source version of VS Code.

To get the remote extension, open the extensions view in the activity bar and search "remote ssh":

image

Install the "Remote - SSH" extension from Microsoft, and a new view will appear in the activity bar; open it. If you already have an SSH configuration file, all the hosts therein will be listed. If you don't already have a configuration for the supercomputer, click the "+" next to "SSH TARGETS" to add a new SSH host:

image

A text entry titled "Enter SSH Connection Command" will open. Enter ssh netid@ssh.rc.byu.edu (replacing "netid" with your net ID), and you will be asked which SSH configuration file to update; unless you have a compelling reason to do otherwise, choose the .ssh/config in your home directory. Once you've done so a new target will appear:

image

Right click the new target and select "Connect to Host in Current Window." You will then be asked to enter your password and verification code. Once you have done so, you are running a remote session--you can open folders and launch terminals on the supercomputer:

image