Re-work of t3n/docker-ssh-jump which is an extended Docker image to run an SSH server. Added support for setting the authorized keys via environment variables.
- USER - comma separated list of usernames to create, default if not set is
jump - AUTHKEY_0 .. AUTH_KEY_9 - public keys to add to _authorized_keys
A directory containing files with public keys can be mounted under /keys/. All files there will be appended to authorized_keys
- publickeys:/keys
docker run --name ssh_server -d -e USER=`whoami` -v ~/.ssh/pubkeys:/keys ghcr.io/zaro/docker-ssh-jump# using the default user jump
docker run --name ssh_server -d -e AUTH_KEY_0="..." -e AUTH_KEY_1="..." ghcr.io/zaro/docker-ssh-jump