This image starts a ssh server which only allows sftp and rsync connections. The authentication is key-based only.
- Pull from Docker Hub, download the package from Releases or build using
builder/build.sh
This Container image extends the base image. Make sure to also configure environment variables, ports and volumes from that image.
AUTHORIZED_PUBLIC_KEYS- Public keys with access to the ssh server. For example
ssh-rsa AAAAB3Nz... user@example.madebytimo.de. This will overwrite theauthorized_keysfile.
- Public keys with access to the ssh server. For example
FILE_PERMISSIONS- If set the given file permissions are set recursively at startup.
HOST_KEY- Host key to use for the ssh server. This will overwrite the
host_keyfile.
- Host key to use for the ssh server. This will overwrite the
/media/sftp- Chroot directory for sftp. Has to be writeable only by root.
/media/sftp/data- Data directory of the sftp share. Writeable by the sftp user.
/media/ssh/authorized_keys- Additional public keys with access to the ssh server.
/media/ssh/host_key- Host key to use for the ssh server.
To run for development execute:
docker compose --file docker-compose-dev.yaml up --build