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