SFTP
SSH File Transfer Protocol (also known as Secure File Transfer Protocol or SFTP) is a network protocol that provides file access, file transfer, and file management over any reliable data stream.
Useful links
https://github.com/emberstack/docker-sftp - good docker sftp implementation.
- The user is
chrootedto the/home/demodirectory. Upon connect, the start directory issftp. - Remove the "password" field in the config for a user and add publickey to use publickey instead of password.