HUB
Sign inSign up
ssh logo

servivum/ssh

By servivum

•Updated over 3 years ago

SSH Server Docker Image

Image
1

10K+

servivum/ssh repository overview

SSH-Server 7.5 License MIT Travis

⁠SSH Server Docker Image

Dockerfile with SSH server based on a tiny Alpine Linux and if needed, preinstalled with common utilities.

⁠Supported Tags

⁠Login with Username and Password

docker container run -d -P \
    -e "SSH_USER=john" \
    -e "SSH_PASSWORD=doe" \
    servivum/ssh

⁠Login with SSH Public Key

docker container run -d -P \
    -e "SSH_USER=john" \
    -e "SSH_PUBLIC_KEY=ssh-rsa bla [email protected]" \
    servivum/ssh

⁠All environment variables

docker container run -d -P \
    -e "SSH_USER=john" \
    -e "SSH_USER_FILE=/run/secrets/ssh_user" \
    -e "SSH_PASSWORD=doe" \
    -e "SSH_PASSWORD_FILE=/run/secrets/ssh_password" \
    -e "SSH_PUBLIC_KEY=ssh bla" \
    -e "SSH_PUBLIC_KEY_FILE=/run/secrets/authorized_keys" \
    -e "SSH_HOME_DIR=/var/www" \
    -e "SSH_CHOWN_HOME_DIR=true" \
    -e "SSH_SHELL=/bin/bash" \
    -e "SSH_USER_ID=99" \
    -e "SSH_GROUP_ID=101" \
    servivum/ssh
Tag summary
Recent tags
Content type
Image
Digest
sha256:a64ad0c7e…
Size
4.8 MB
Last updated
over 3 years ago
docker pull servivum/ssh:7.5