Container for managing data over sftp server.
There are two ways to setup public key
- Set variable(s) SSH_CLIENT_someusername="ssh-ed25519 AAAAC3..." and /entrypoint will put it in user home authorized_keys for you
- Mount authorized_keys directly to user home
/var/www/
Container uses precreated user www-data
with chrooted home under /var/www/
directory. Directory is owned by root to be able to use ChrootDirectory sshd directive so you are not allowed to write anything directly in this directory.
See docker-compose.yaml
sftp-test
service in case you struggle with connection.