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

Remote Extensions to use Remote-ssh and remote-container at the same time #117610

Closed
xendren opened this issue Feb 24, 2021 · 3 comments
Closed
Assignees

Comments

@xendren
Copy link

xendren commented Feb 24, 2021

First of all, the remote-ssh extension is a fantastic feature that allows our developers to seamlessly remote into our Linux development servers and develop in house applications.
The only issue we have is that the remote Linux server still needs administrators to manage the needed software to support development on those dev servers. This is one of the big problems that Docker solves. We can build images that have standardized toolsets needed by the developers. Unfortunately, if we have the developers log into the dev server and start up the container, they no longer have an awesome IDE to develop with.

Currently, it appears that the VSCode remote extensions will only allow us to either remote-ssh into the remote linux server or remote-container into a docker container (requires Docker desktop).

What we really need is to be able to remote-ssh to the linux server, start up a container there, and remote-container into it. This seems to be similar to how the new GitHub Codespaces work from my understanding.

Maybe this is already possible, and I am not configuring it correctly.

@yume-chan
Copy link
Contributor

I think it's possible to setup sshd IN the container and use remote-ssh extension to connect the container directly?

@xendren
Copy link
Author

xendren commented Feb 25, 2021

Thank you for the response. Do you mean setup ssh inside the container on a non 22 port and adjust my ssh config to include the port for the container? Would need to have the container running before remoting. Would the vscode extensions (remote, language servers, etc) configure properly inside the container or would I need to make sure my user exists inside the container?

@chrmarti
Copy link
Collaborator

chrmarti commented Mar 3, 2021

You can attach to an existing container while connected with Remote-SSH. (F1 > Remote-Containers: Attach to Running Container...)

More general support is tracked as microsoft/vscode-remote-release#2994.

@chrmarti chrmarti closed this as completed Mar 3, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Apr 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants