diff --git a/quests/Dockerfile b/quests/Dockerfile index 99fc632..c9f98ed 100644 --- a/quests/Dockerfile +++ b/quests/Dockerfile @@ -26,8 +26,9 @@ ENV USERNAME=commander RUN adduser --disabled-password --gecos '' --shell /bin/zsh ${USERNAME} COPY ./ssh_pubkey /home/${USERNAME}/.ssh/authorized_keys -RUN chmod 600 /home/${USERNAME}/.ssh/authorized_keys -RUN chmod 700 /home/${USERNAME}/.ssh +RUN chmod 600 /home/${USERNAME}/.ssh/authorized_keys \ + && chmod 700 /home/${USERNAME}/.ssh \ + && chown -R ${USERNAME}:${USERNAME} /home/${USERNAME}/.ssh RUN service ssh start