#unable to connect to ssh

1 messages · Page 1 of 1 (latest)

queen pawn
#

Hey, having trouble with VSCode Remote SSH to my pod. Need help.

I can SSH into the pod from my terminal using both:

  • ssh root@<ip> -p <port> -i ~/.ssh/id_ed25519 (SSH over TCP)
  • ssh <user>@ssh.runpod.io -i ~/.ssh/id_ed25519 (stable gateway)

Both work perfectly in terminal.

However, VSCode Remote-SSH fails with:

No hints found in the recent session

If I paste the raw TCP SSH command directly into VSCode, it connects.
But using an SSH config alias (Host runpod) does not work, even though ssh runpod works fine in terminal.

So VSCode can SSH, but fails during the server bootstrap on the pod.

Is there something missing in the pod environment that prevents VSCode server from starting?

Thanks!

My ssh config file:
Host 194.68.xxx.xx
HostName 194.68.xxx.xx
User root
Port xxxxx
IdentityFile ~/.ssh/id_ed25519

Host runpod
HostName ssh.runpod.io
User j1wxxxxxxxxx-xxxxxd
IdentityFile ~/.ssh/id_ed25519
IdentitiesOnly yes
StrictHostKeyChecking no
UserKnownHostsFile /dev/null
ServerAliveInterval 30
ServerAliveCountMax 3
TCPKeepAlive yes

random dewBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

heavy nymphBOT
lofty cargo
#

did you try logging in using Web Terminal (connect tab on your pods detail page)

queen pawn
#

yes i did. it is connecting to web terminal but not opening in vs code

lofty cargo
#

is your VS Code app running?

queen pawn
#

yup

#

its working in my browser, when i open the jupyter notebook in browser, it is also working but its not opening in vs code