Files
site/sshtun/Dockerfile

24 lines
598 B
Docker
Raw Permalink Normal View History

2026-04-13 18:08:52 +00:00
FROM debian:13-slim
2024-08-09 18:47:22 -07:00
2026-04-13 18:08:52 +00:00
RUN apt update
RUN apt install -y \
openssh-server \
socat
2024-08-09 18:47:22 -07:00
2026-04-13 18:08:52 +00:00
RUN adduser --disabled-password --gecos "" armbian
2024-08-09 18:47:22 -07:00
2026-04-13 18:08:52 +00:00
# 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
2024-08-09 18:47:22 -07:00
RUN echo "PermitRootLogin no" >> /etc/ssh/sshd_config
RUN echo "PasswordAuthentication no" >> /etc/ssh/sshd_config
COPY ./entrypoint.sh /
ENTRYPOINT ["/entrypoint.sh"]