tags: - golang - sftp categories: - informational comments: true

date: 2021-09-04 00:00:00


go based sftp server. Can be run as a regular user. Server has two modes. This runbook only describes the basic mode - sftpgo portable --help

Details https://github.com/drakkan/sftpgo/blob/main/README.md

Explanation of configuration https://github.com/drakkan/sftpgo/blob/main/docs/full-configuration.md

If security is a concern, the service can run in chroot env, or systemd service. (with restrictions) See: https://www.redhat.com/sysadmin/systemd-secure-services



sftp -i colomboman -P 4444 colomboman@

Where is where the service was installed.


NOTE: CGO_ENABLED=0 go build -trimpath -ldflags "-s -w" fails due to go-sqlite issue

apt-get update; apt-get install daemontools

Once the service is started, the following files will be created by sftpgo (ssh keys)

ls service/sftpgo
id_ecdsa  id_ecdsa.pub  id_ed25519  id_ed25519.pub  id_rsa  id_rsa.pub