mirror of
https://github.com/atmoz/sftp.git
synced 2024-11-17 12:51:33 -05:00
Even better
This commit is contained in:
parent
2678e042c8
commit
61b0a863e0
1 changed files with 7 additions and 6 deletions
13
README.md
13
README.md
|
@ -47,12 +47,6 @@ OpenSSH client, run: `sftp -P 2222 foo@<host-ip>`
|
||||||
|
|
||||||
### Store users in config
|
### Store users in config
|
||||||
|
|
||||||
```
|
|
||||||
$ cat /host/users.conf
|
|
||||||
foo:123:1001
|
|
||||||
bar:abc:1002
|
|
||||||
```
|
|
||||||
|
|
||||||
```
|
```
|
||||||
docker run \
|
docker run \
|
||||||
-v /host/users.conf:/etc/sftp-users.conf:ro \
|
-v /host/users.conf:/etc/sftp-users.conf:ro \
|
||||||
|
@ -62,6 +56,13 @@ docker run \
|
||||||
-p 2222:22 -d atmoz/sftp
|
-p 2222:22 -d atmoz/sftp
|
||||||
```
|
```
|
||||||
|
|
||||||
|
/host/users.conf:
|
||||||
|
|
||||||
|
```
|
||||||
|
foo:123:1001
|
||||||
|
bar:abc:1002
|
||||||
|
```
|
||||||
|
|
||||||
### Encrypted password
|
### Encrypted password
|
||||||
|
|
||||||
Add `:e` behind password to mark it as encrypted. Use single quotes.
|
Add `:e` behind password to mark it as encrypted. Use single quotes.
|
||||||
|
|
Loading…
Reference in a new issue