! ! ! ! ! w EPDLFSCVJMEUMPDBMBN[OTTI FROM local/amzn ! # PAM設定を変えておかないとsshがいきなり切切れる RUN sed -‐‑‒ri 's/UsePAM yes/#UsePAM yes/g' /etc/ssh/sshd_̲config RUN sed -‐‑‒ri 's/#UsePAM no/UsePAM no/g' /etc/ssh/sshd_̲config RUN passwd -‐‑‒f -‐‑‒u ec2-‐‑‒user ! # start-‐‑‒stopしてhost_̲keyを作る RUN service sshd start RUN service sshd stop ! ADD ./authorized_̲keys /home/ec2-‐‑‒user/.ssh/authorized_̲keys ! EXPOSE 22