/docker-openssh-static

A Docker image for OpenSSH, statically compiled with musl

Primary LanguageDockerfileMIT LicenseMIT

docker-openssh-static

A Docker image for OpenSSH, statically compiled with musl

CI DockerHub

Usage

In shell

Start sshd service:

$ docker run -d --read-only \
    -p 2222:22 -v /path/to/ssh/confs:/etc/ssh:ro \
    ep76/openssh-static:latest

Run a command:

$ docker run --rm --entrypoint=ssh ep76/openssh-static:latest -V
# <version string>

In Dockerfile

COPY --from=ep76/openssh-static:latest /usr /usr

License

MIT