From a65979595d77491024408080e030bfe265666d55 Mon Sep 17 00:00:00 2001 From: Adrian Dvergsdal Date: Wed, 3 Jun 2015 12:03:55 +0200 Subject: [PATCH] Concatenate ssh keys to authorized_keys and set correct permissions --- entrypoint | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/entrypoint b/entrypoint index c0d776e..0151e43 100755 --- a/entrypoint +++ b/entrypoint @@ -35,6 +35,10 @@ for users in "$@"; do fi echo "$user:$pass" | chpasswd $chpasswdOptions + + cat /home/$user/.ssh/keys/* >> /home/$user/.ssh/authorized_keys + chown $user /home/$user/.ssh/authorized_keys + chmod 600 /home/$user/.ssh/authorized_keys done exec /usr/sbin/sshd -D