diff --git a/README.md b/README.md index 5ac285b..d1fff1f 100644 --- a/README.md +++ b/README.md @@ -61,9 +61,13 @@ Tip: you can use makepasswd to generate encrypted passwords: ### 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 \ - -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 \ -p 2222:22 -d atmoz/sftp \ foo::1001