mirror of
https://github.com/atmoz/sftp.git
synced 2024-11-17 12:51:33 -05:00
Update README.md to reflect new handling of ssh keys
This commit is contained in:
parent
a65979595d
commit
d1965cdd84
1 changed files with 5 additions and 1 deletions
|
@ -61,9 +61,13 @@ Tip: you can use makepasswd to generate encrypted passwords:
|
||||||
|
|
||||||
### Using SSH key (without password)
|
### Using SSH key (without password)
|
||||||
|
|
||||||
|
Mount all public keys in the user's `.ssh/keys/` folder. All keys are automatically
|
||||||
|
appended to `.ssh/authorized_keys`.
|
||||||
|
|
||||||
```
|
```
|
||||||
docker run \
|
docker run \
|
||||||
-v /host/id_rsa.pub:/home/foo/.ssh/authorized_keys:ro \
|
-v /host/id_rsa.pub:/home/foo/.ssh/keys/id_rsa.pub:ro \
|
||||||
|
-v /host/id_other.pub:/home/foo/.ssh/keys/id_other.pub:ro \
|
||||||
-v /host/share:/home/foo/share \
|
-v /host/share:/home/foo/share \
|
||||||
-p 2222:22 -d atmoz/sftp \
|
-p 2222:22 -d atmoz/sftp \
|
||||||
foo::1001
|
foo::1001
|
||||||
|
|
Loading…
Reference in a new issue