0
0
Fork 0
mirror of https://github.com/atmoz/sftp.git synced 2024-11-17 12:51:33 -05:00
Mirror of atmoz-sftp for building my own containers.
Find a file
2014-10-16 00:09:27 +02:00
.dockerignore First commit 2014-10-07 21:34:24 +02:00
Dockerfile Cleanup after install 2014-10-16 22:08:13 +02:00
README.md Update README.md 2014-10-16 00:09:27 +02:00
run No need for group, forced sftp 2014-10-16 22:07:39 +02:00
sshd_config No need for group, forced sftp 2014-10-16 22:07:39 +02:00

sftp

Simple and easy to use SFTP server based on Debian

Usage

  • Define users and passwords in comma separated list with SFTP_USERS ("user1:pass1,user2:pass2").
  • Mount volumes in user's home folder.

The users are chrooted to their home folders, so it is important to mount the volumes in separate folders inside the user's home folder (/home/your-user/your-folder).

Examples

Simple (one user and one folder):

docker run \
    -e SFTP_USERS="foo:123" \
    -v "/sftp/share:/home/foo/share" \
    -p 2222:22 -d atmoz/sftp

Multiple users and folders:

docker run \
    -e SFTP_USERS="foo:123,bar:abc" \
    -v "/sftp/share:/home/foo/share" \
    -v "/sftp/ebooks:/home/foo/ebooks" \
    -v "/sftp/http:/home/bar/http" \
    -p 2222:22 -d atmoz/sftp