0
0
Fork 0
mirror of https://github.com/atmoz/sftp.git synced 2024-11-17 12:51:33 -05:00
atmoz-sftp/README.md

37 lines
795 B
Markdown
Raw Normal View History

2014-10-06 15:40:59 -04:00
sftp
====
2014-10-15 16:47:14 -04:00
Simple and easy to use SFTP server based on Debian
2014-10-06 15:40:59 -04:00
Usage
-----
2014-10-15 16:26:16 -04:00
- Define users and passwords in comma separated list with SFTP_USERS ("user1:pass1,user2:pass2").
- Mount volumes in user's home folder.
2014-10-15 16:28:35 -04:00
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**).
2014-10-15 16:26:16 -04:00
2014-10-15 16:47:14 -04:00
Examples
--------
Simple (one user and one folder):
2014-10-15 18:09:27 -04:00
2014-10-15 16:47:14 -04:00
```
docker run \
-e SFTP_USERS="foo:123" \
-v "/sftp/share:/home/foo/share" \
-p 2222:22 -d atmoz/sftp
```
2014-10-06 18:25:49 -04:00
2014-10-15 16:47:14 -04:00
Multiple users and folders:
2014-10-15 18:09:27 -04:00
2014-10-06 18:25:49 -04:00
```
docker run \
2014-10-15 16:47:14 -04:00
-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" \
2014-10-06 18:25:49 -04:00
-p 2222:22 -d atmoz/sftp
```