Runpod SSH
Date: 2026-01-27
Author: Thomas
Categories:
Coding |
Computers |
Tags:
Code |
Internet |
Linux |
VS Code |
Runpod SSH and VS Code
Connect a Runpod pod to VS Code
- Go into c:\Users\[YourUsername]\.ssh (Windows locally)
- Look for two files, something like "id_ed25519" and "id_ed25519.pub". If not there, open PowerShell in the folder .ssh and create with: ssh-keygen -t ed25519 -C "your_email@example.com". ("ed25519" can be anything as can email address.)
- Copy contents of id_ed25519.pub (this is the key).
- In runpod go into Settings under Account (left menu)
- Scroll down and click SSH public keys
- Remove contents in the key field and paste the new key. Or paste the new key under any existing keys. Klick "Update public key".
- Open your pod for edit and copy the ssh string under SSH over exposed TCP
- Paste the string in PowerShell and test the connection.
- Start VS Code and open Configure SSH Hosts. Make new entry or edit an existing entry:
Host Runpod (or any name)
Hostname [address in the ssh string] (like:157.157.221.29)
User root
Port [the number after -p in the ssh string]
Identity file ~/.ssh/[name of ssh file] (no .pub ending)
- Connect to host and open folder workspace.