Simple quick SSHD docker image for ephemeral access
The configuration is done via ENV variables
Both PASSWORD and PUBKEY variables are optionnal, but a SSHD server without any credential would be useless. Maybe you want to use this docker image to try hacking OpenSSH daemon.
You can freely setup both variables to enable password access AND public key access.
Here is an example with all options :
docker run -it --rm \
-e "USERNAME=mylogin" \
-e "PASSWORD=kadl3okZ9JEjez" \
-e "PUBKEY=ssh-rsa AAA[...]DSLK= comment" \
-e "USERID=1005" \
-e "GROUPID=1020" \
-e "USERDIR=/srv/myhome" \
-e "SUDOER=nopasswd" \
mdns/sshd
Content type
Image
Digest
sha256:d6cebc5c5…
Size
364.7 MB
Last updated
3 months ago
docker pull acaranta/docker-sshd