1
0
sshd/Dockerfile

13 lines
250 B
Docker
Raw Normal View History

2023-11-28 17:51:46 -05:00
FROM ubuntu:latest
2023-12-06 08:58:52 -05:00
RUN apt update && apt install openssh-server sudo scp -y
2023-11-28 17:51:46 -05:00
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"]