Requirements
You need an SSH key pair added to your Runpod account before starting. See SSH public keys for setup instructions.Step 1: Expose TCP port 22
Official Runpod templates already expose port 22, so you can skip this step if you use one. After you deploy, check that port 22 appears under Direct TCP Ports in the Pod’s Connect tab. For other templates, there are three ways to add port 22. Edit an existing template:- Go to Templates in the Runpod console.
- Find your template, click the three-dot menu at the right of its row, and select Edit template.
- In the Config tab, expand Networking configuration and add
22to the Expose TCP ports field. - Click Save, then deploy the Pod.