Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not resolve devpod hostname #1357

Open
PSanetra opened this issue Nov 5, 2024 · 1 comment
Open

Can not resolve devpod hostname #1357

PSanetra opened this issue Nov 5, 2024 · 1 comment

Comments

@PSanetra
Copy link

PSanetra commented Nov 5, 2024

I am trying to follow the CLI quickstart tutorial, but on devpod up github.com/microsoft/vscode-remote-try-node --ide vscode --ssh-config ~/.ssh/devpod.ssh.config visual studio code opens with the error message Could not establish connection to "vscode-remote-try-node.devpod": Could not resolve hostname.

Can you explain how this hostname resolution should actually work? Would it usually modify my /etc/hosts file?

Local Environment:

  • DevPod Version: v0.5.20
  • Operating System: linux (Ubuntu 24.04)
  • ARCH of the OS: AMD64

DevPod Provider:

  • Local/remote provider: docker
@bkneis
Copy link
Contributor

bkneis commented Nov 6, 2024

Hi @PSanetra, devpod resolves the workspace via your SSH config file, here you have specified ~/.ssh/devpod.ssh.config so the SSH target will be defined there. This needs to actually be loaded by your local system's SSH server to work. To do so add to your ~/.ssh/config Include ~/.ssh/devpod.ssh.config. Let me know if this fixes it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants