Lawrence Murray on 13 January 2023
Visual Studio Code can connect to a remote machine via SSH to provide an ergonomic development environment. The explorer allows browsing files remotely, and terminals allow running commands remotely. A particular convenience is that Code will automatically import credentials for you, to allow convenient interaction with e.g. GitHub repositories.
You will need to know the 👤
user and 🏠
host of the remote instance to which to connect. It will also need to be set up with a 🔑
key or ✳️
password that you can use to access it. If you are interested in developing on a GPU instance in particular, see the roundup of cloud service providers.
sshinto the search box. Find Remote - SSH from Microsoft (likely the first) and click the Install button next to it.
hostinto the textbox in the form
user@hostand hit Enter. A new window will open for the remote connection. If this is the first login for the instance, you may be prompted with “Host has fingerprint… Are you sure you want to continue?”; this is normal, click Continue. If you are using a ✳️
password, you may be prompted to enter it.
Ctrl + `.
The screen recording below demonstrates the steps. For more information see the Visual Studio Code documentation.
A how-to and round-up of cloud service providers.
22 Nov 22
Step by step through the HTML, ImageMagick and Ruby. Works with Jekyll 4.
30 Oct 22
How to profile CUDA code on cloud GPU instances using Nsight Systems.
13 Jan 23