Public | Automated Build

Last pushed: 11 days ago
Short Description
Latest Alpine-based OpenSSH daemon configurable through ENV
Full Description

Alpine SSHD

Build

docker build --tag=ekapusta/alpine-sshd .

Override through ENV

  • SSHD_OPTION_PERMIT_ROOT_LOGIN
  • SSHD_OPTION_USE_DNS
  • SSHD_COMMAND_AFTER

Run restartable on 2222 port with mounted $HOME to root and keys

docker run --name=sshd --detach --restart=always --publish=2222:22 \
           --volume=$(pwd)/vol/etc/ssh:/etc/ssh \
           --volume=$HOME:/root \
           ekapusta/alpine-sshd

Clean, run & go into

docker ps --filter=name=sshd && docker rm --force sshd
docker run --name=sshd --detach \
           --volume=$(pwd)/vol/etc/ssh:/etc/ssh \
           ekapusta/alpine-sshd
docker exec --interactive=true --tty=true sshd sh

Debug

docker run --rm ekapusta/alpine-sshd
Docker Pull Command
Owner
ekapusta
Source Repository