Skip to content

servivum/docker-ssh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 test@example.com" \
    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

Multi platform builds

export TAG="8.8-common"
docker buildx create --use
docker buildx build \
    --file ./$TAG/Dockerfile \
    --platform linux/amd64,linux/arm64/v8 \
    --tag servivum/ssh:$TAG \
    --push \
    $TAG/

Releases

No releases published

Packages

No packages published