diff --git a/entrypoint b/entrypoint index bff3652..5b44861 100755 --- a/entrypoint +++ b/entrypoint @@ -88,7 +88,9 @@ function createUser() { # Add SSH keys to authorized_keys with valid permissions if [ -d /home/$user/.ssh/keys ]; then - cat /home/$user/.ssh/keys/* >> /home/$user/.ssh/authorized_keys + for publickey in /home/$user/.ssh/keys/*; do + cat $publickey >> /home/$user/.ssh/authorized_keys + done chown $uid /home/$user/.ssh/authorized_keys chmod 600 /home/$user/.ssh/authorized_keys fi