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

Add sshd to .devcontainer.json #3079

Merged
merged 1 commit into from
Feb 6, 2024
Merged

Conversation

pje
Copy link
Member

@pje pje commented Jan 4, 2024

This is required in order to ssh into a codespace for the repo:

error getting ssh server details: failed to start SSH server:
Please check if an SSH server is installed in the container. If the docker image being used for the codespace does not have an SSH server, install it in your Dockerfile or, for codespaces that use Debian-based images, you can add the following to your devcontainer.json:

"features": {
"ghcr.io/devcontainers/features/sshd:1": {
"version": "latest"
}
}

@pje pje requested a review from a team as a code owner January 4, 2024 20:19
@TingluoHuang TingluoHuang enabled auto-merge (squash) February 6, 2024 13:38
This is required in order to ssh into a codespace for the repo: 


> error getting ssh server details: failed to start SSH server:
Please check if an SSH server is installed in the container.
If the docker image being used for the codespace does not have an SSH server,
install it in your Dockerfile or, for codespaces that use Debian-based images,
you can add the following to your devcontainer.json:
> 
> "features": {
>     "ghcr.io/devcontainers/features/sshd:1": {
>         "version": "latest"
>     }
> }
@TingluoHuang TingluoHuang merged commit cd812f0 into main Feb 6, 2024
10 checks passed
@TingluoHuang TingluoHuang deleted the pje/add-sshd-to-devcontainer branch February 6, 2024 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants