Prerequisites
To complete this tutorial, you will need:- A local development environment with VSCode installed. Download it from Visual Studio Code.
- Familiarity with basic command-line operations and SSH.
- Your SSH key setup with RunPod, see Use SSH.
- A RunPod account. Sign up at RunPod.
- (Optional) A GitHub account for code management.
Create a Pod instance
In this step, you will create a Pod instance.- Navigate to Pods and select + Deploy.
- Choose between GPU and CPU based on your requirements.
-
Customize your instance by setting up the following:
- (Optional) Specify a Network volume.
- Select an instance type. For example, A40.
- (Optional) Provide a template. For example, RunPod Pytorch.
- (GPU only) Specify your compute count.
- Review your configuration and select Deploy On-Demand.
Establish a connection
In this step, you will connect to your Pod instance using SSH.- From the Pods page, select the Pod you just deployed.
-
Select Connect and copy the SSH over exposed TCP: (Supports SCP & SFTP) command. For example:
Configuring VSCode for remote development
To connect your VSCode editor to the Pod instance, follow these steps:- Open VSCode and install the Dev Container extension.
-
Open the Command Palette (
CTRL+SHIFT+P
) and choose Remote-SSH: Add New SSH Host. - Enter the copied SSH command from the previous step and paste it into the text box.
-
Update your
.ssh/config
file by saving the configuration. For example: - In the Command Palette, select Remote-SSH: Connect to Host and choose your newly added host.