Skip to content

Add sshd to .devcontainer.json - #3079

Merged
TingluoHuang merged 1 commit into
mainfrom
pje/add-sshd-to-devcontainer
Feb 6, 2024
Merged

TingluoHuang merged 1 commit into
mainfrom
pje/add-sshd-to-devcontainer

Conversation

@pje

@pje pje commented Jan 4, 2024

Copy link
Copy Markdown
Contributor

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 force-pushed the pje/add-sshd-to-devcontainer branch from 1857316 to 6de8165 Compare February 6, 2024 13:37
@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 force-pushed the pje/add-sshd-to-devcontainer branch from 6de8165 to ea6b050 Compare February 6, 2024 15:00
@TingluoHuang
TingluoHuang merged commit cd812f0 into main Feb 6, 2024
@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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants