FROM debian:13-slim RUN apt update RUN apt install -y \ openssh-server \ socat RUN adduser --disabled-password --gecos "" armbian # ssh: RUN mkdir /home/armbian/.ssh # only one pubkey -- wildcard just to conceal filename COPY ./oilykey/*.pub /home/armbian/.ssh/authorized_keys COPY ./oilykey/* /home/armbian/.ssh/ RUN chown -R armbian:armbian /home/armbian/.ssh/ RUN chmod 600 /home/armbian/.ssh/* #RUN mkdir /var/run/sshd RUN echo "PermitRootLogin no" >> /etc/ssh/sshd_config RUN echo "PasswordAuthentication no" >> /etc/ssh/sshd_config COPY ./entrypoint.sh / ENTRYPOINT ["/entrypoint.sh"]