1
0
sshd/Dockerfile
2023-12-07 02:58:52 +13:00

13 lines
250 B
Docker

FROM ubuntu:latest
RUN apt update && apt install openssh-server sudo scp -y
RUN useradd -rm -d /home/ubuntu -s /bin/bash -g root -G sudo -u 1000 test
RUN echo 'test:test' | chpasswd
RUN service ssh start
EXPOSE 22
CMD ["/usr/sbin/sshd","-D"]