Docker image for running an OpenSSH SFTP server on Ubuntu 16.04.
576
Docker image for running an OpenSSH SFTP server on Ubuntu 16.04.
At startup, if any additional config files are available at /opt/ssh/config, they will be used to override the defaults. It would generally be a good idea to include your HostKeys here such that when your container restarts or is scheduled on a different host, it doesn't change its hostkeys.
For each file in /opt/ssh/authorized_keys a user will be created with the name as the file. The contents of the file will be considered as the authorized_keys for this user. The user will be automatically restricted to sftp only, so has no shell access.
/opt
/ssh
/authorized_keys
user01
user02
For an example see the tests.
Content type
Image
Digest
Size
89.6 MB
Last updated
over 10 years ago
docker pull panenka76/sftp