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

[Feat] SSH Server opt-in #763

Open
wants to merge 5 commits into
base: 1.x
Choose a base branch
from

Conversation

DarkGhostHunter
Copy link

@DarkGhostHunter DarkGhostHunter commented Nov 30, 2024

This PR adds an SSH Server to the DevContainer (opt-in), with the purpose of letting the developer connect remotely on situations where he doesn't have a mature DevContainer provisioner or just needs a remote connection from elsewhere.

The developer only needs to uncomment the port and set a password.

services:
    laravel.test:
        ports:
            # - '${SSH_PORT:-2222}:22'
        environment:
            # SSH_PASSWORD: 

Note

If the password is empty, the user won't be able to log in.

This is done installing OpenSSH, and starting an SSH Server along PHP through Supervisor.

The DevContainer provisioner has no obligation to serve an SSH Server via network. For example, DevPod uses stdio, while others may use file sockets or expose the Docker Machine to the network (overkill for a single proyect), hence why this patch.

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