From d1965cdd843941b8cd8811341dc420b13001c88a Mon Sep 17 00:00:00 2001 From: Adrian Dvergsdal Date: Wed, 3 Jun 2015 13:09:01 +0200 Subject: [PATCH] Update README.md to reflect new handling of ssh keys --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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