0
0
Fork 0
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:
Adrian Dvergsdal 2015-06-03 13:09:01 +02:00
parent a65979595d
commit d1965cdd84

View file

@ -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