Sign inSign up

linuxchina/sshd-test

By linuxchina

Updated over 4 years ago

Image
0

79

linuxchina/sshd-test repository overview

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"]

Tag summary

Content type

Image

Digest

Size

93.4 MB

Last updated

over 4 years ago

docker pull linuxchina/sshd-test