Dockerfile for SSH.
SSH_GID
SSH_PASSWORD
SSH_PATH
SSH_UID
SSH_UMASK
SSH_USERNAME
docker run -d keto/ssh
To run the container, binding to port 2222 on the host: # docker run --name ssh -d -p 2222:22 keto/ssh
Obtain the password via docker logs: # Docker logs ssh | grep 'SSH User password' # SSH User password: jvwxSwu9fcwaUGtkXRD1okSD56M
You can set a specific password using the SSH_PASSWORD environment variable:
# docker run -p 2222:22 -e SSH_PASSWORD=mypassword keto/ssh
Content type
Image
Digest
Size
80.5 MB
Last updated
over 5 years ago
docker pull keto/ssh