Skip to content

sftpgo

This directory contains some examples for the SFTPGo file server.

example-standard

This example runs SFTPGo in standard mode (sftpgo serve command, the default).

Bash
1
2
3
4
5
6
7
cd example-standard/

install -d -o1000 -g1000 data home
# Initialize the SFTPGo database. This creates the sftpgo.db file
docker-compose run --rm -v "$PWD/initial-data.json:/initial-data.json:ro" sftpgo sftpgo initprovider --loaddata-from=/initial-data.json

docker-compose down && docker-compose up

Then you can access your SFTPGo instance:

example-portable

This example runs SFTPGo in portable mode (sftpgo portable command).

Bash
1
2
3
4
5
cd example-portable/

install -d -o1000 -g1000 home serve

docker-compose down && docker-compose up

Then you can access your SFTPGo instance via SFTP only:

Bash
sftp -P2022 user@127.0.0.1

Note: if you want it to be accessible only via web browser instead, you can set the --sftpd-port=-1 and --httpd-port=8080 flags.

Useful info

You can find the complete list of all the SFTPGo ACL permissions (with descriptions) in this file: https://github.com/drakkan/sftpgo/blob/fef388d8cbd50db9ab7d38f8bc02a7ebde140407/internal/dataprovider/user.go#L40-L77