Dockerfile (365B)
1 # An SSH server with authentication disabled for the user "test" 2 3 FROM alpine 4 5 RUN apk update && apk add openssh 6 7 RUN ssh-keygen -A 8 9 RUN echo 'PasswordAuthentication yes' >> /etc/ssh/sshd_config 10 RUN echo 'PermitEmptyPasswords yes' >> /etc/ssh/sshd_config 11 RUN echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config 12 13 COPY entry.sh /entry.sh 14 15 EXPOSE 22 16 17 CMD ["/entry.sh"]