{"repo":"atmoz/sftp","free":true,"listed":false,"github":"https://github.com/atmoz/sftp","clone":"git clone https://github.com/atmoz/sftp.git","description":"Securely share your files","language":"Shell","stars":1905,"topics":["docker","sftp","openssh"],"license":"MIT","category":"deployment-docker-iac","readme_excerpt":"SFTP Supported tags and respective Dockerfile links - debian , latest ( Dockerfile ) - alpine ( Dockerfile ) Securely share your files Easy to use SFTP (SSH File Transfer Protocol) server with OpenSSH. Usage - Define users in (1) command arguments, (2) SFTP USERS environment variable or (3) in file mounted as /etc/sftp/users.conf (syntax: user:pass[:e][:uid[:gid[:dir1[,dir2]...]]] ... , see below for examples) - Set UID/GID manually for your users if you want them to make changes to your mounted volumes with permissions matching your host filesystem. - Directory names at the end will be created under user's home directory with write permission, if they aren't already present. - Mount volumes - The users are chrooted to their home directory, so you can mount the volumes in separate directories inside the user's home directory (/home/user/ mounted-directory ) or just mount the whole /home directory. Just remember that the users can't create new files directly under their own home directory, so make sure there are at least one subdirectory if you want them to upload files. - For consistent server fingerprint, mount your own host keys (i.e. /etc/ssh/ssh host ) Examples Simplest docker run example User \"foo\" with password \"pass\" can login with sftp and upload files to a folder called \"upload\". No mounted directories or custom UID/GID. Later you can inspect the files and use --volumes-from to mount them somewhere else (or see next example). Sharing a directory from your computer Le","default_branch":null,"files":null,"tree":[],"storefront":"/r/atmoz","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/atmoz/sftp/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}