Skip to content

Commit 8c0e4f7

Browse files
committed
add sftp
1 parent fd45cbe commit 8c0e4f7

File tree

4 files changed

+47
-0
lines changed

4 files changed

+47
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,7 @@ A collection of delicious docker recipes.
356356
- [x] vnc
357357
- selenoid-ui
358358
- [x] sentry
359+
- [x] atmoz/sftp
359360
- [x] scrapinghub/splash
360361
- [x] teamatldocker
361362
- [x] confluence

sftp/README.md

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
sftp
2+
====
3+
4+
![](https://raw.githubusercontent.com/atmoz/sftp/master/openssh.png)
5+
6+
## up and running
7+
8+
```bash
9+
$ chown root:root data
10+
11+
$ docker-compose up -d
12+
13+
$ sftp -P 2222 foo@localhost
14+
foo@localhost's password: ******
15+
Connected to foo@localhost.
16+
>>> version
17+
SFTP protocol version 3
18+
>>> ls
19+
upload
20+
>>> put README.md upload
21+
Uploading README.md to /upload/README.md
22+
>>> bye
23+
24+
$ tree data
25+
data
26+
├── bar
27+
├── baz
28+
├── foo
29+
│   └── upload
30+
│   └── README.md
31+
└── users.conf
32+
```
33+
34+
:warning: Changes to existing users are ignored.

sftp/data/users.conf

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
foo:123:1001:100:upload
2+
bar:abc:1002:100:upload
3+
baz:xyz:1003:100:upload

sftp/docker-compose.yml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
sftp:
2+
image: atmoz/sftp:alpine
3+
ports:
4+
- "2222:22"
5+
volumes:
6+
- /etc/ssh
7+
- ./data:/home
8+
- ./data/users.conf:/etc/sftp/users.conf:ro
9+
restart: unless-stopped

0 commit comments

Comments
 (0)