© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
RunpodR
Runpod•3y ago•
41 replies
Sagar

connect ssh vscode to runpod gpu server

following the blog - https://blog.runpod.io/how-to-connect-vscode-to-runpod/

1. I have created ssh key, and added public key to account
2. I have created pod with TCL port 22
3. accessing the pod via terminal, using and running following command to turn on the ssh connection
bash -c "apt update;apt install -y wget;DEBIAN_FRONTEND=noninteractive apt-get install openssh-server -y;mkdir -p ~/.ssh;cd $_;chmod 700 ~/.ssh;echo YOUR_PUBLIC_KEY > authorized_keys;chmod 700 authorized_keys;service ssh start;sleep infinity"
bash -c "apt update;apt install -y wget;DEBIAN_FRONTEND=noninteractive apt-get install openssh-server -y;mkdir -p ~/.ssh;cd $_;chmod 700 ~/.ssh;echo YOUR_PUBLIC_KEY > authorized_keys;chmod 700 authorized_keys;service ssh start;sleep infinity"

4. then I am using vs code remote desktop extension to connect to server

problem is it is asking for password
RunPod Blog
How to Connect VSCode To RunPod
While working in a terminal window is sometimes good enough, it's much nicer to work within your IDE if you are doing interactive development. Fortunately, you can connect your VSCode IDE to your RunPod instance via SSH. This will allow you to edit files and code on your remote instance
How to Connect VSCode To RunPod
Solution
Hey got it resolved, thanks for help

I have wsl on my windows,

I was creating a ssh key on wsl and
While using remote it is looking at windows config
Jump to solution
Runpod banner
RunpodJoin
We're a community of enthusiasts, engineers, and enterprises, all sharing insights on AI, Machine Learning and GPUs!
21,202Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

cant ssh to runpod
RunpodRRunpod / ⛅|pods
16mo ago
I can't connect to my ssh on runpod
RunpodRRunpod / ⛅|pods
5mo ago
How to SSH connect to the runpod for uploading files?
RunpodRRunpod / ⛅|pods
7mo ago
Can't connect via ssh: Runpod asking for password
RunpodRRunpod / ⛅|pods
15mo ago