sshd for test only: ssh [email protected] -p 2022 and password is test.
Dockerfile as following:
FROM ubuntu:latest
RUN apt update
RUN apt install openssh-server sudo -y
RUN useradd -rm -d /home/ubuntu -s /bin/bash -g root -G sudo -u 1000 test
RUN usermod -aG sudo test
RUN service ssh start
RUN echo 'test:test' | chpasswd
EXPOSE 22
CMD ["/usr/sbin/sshd","-D"]
Content type
Image
Digest
Size
93.4 MB
Last updated
over 4 years ago
docker pull linuxchina/sshd-test