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 #111

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nbiscaro
Copy link
Contributor

@nbiscaro nbiscaro commented Feb 2, 2025

Adds the ability to SSH into codespaces container using the SSHD dev container feature.

Currently, trying to ssh into codespaces via gh codespace ssh -c <my-container> results in

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"
    }
}

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.

1 participant