Sign inSign up

guanyebo/centos-sshd

By guanyebo

•Updated about 6 years ago

For Ansible to Lab sshd base User: root Password: newpasswd

Image
0

208

guanyebo/centos-sshd repository overview

For Ansible to Lab sshd base User: root Password: newpasswd

Dockerfile

FROM centos:7
LABEL 
RUN true \
    && yum update -y && yum install -y \
    passwd \
    openssl \
    openssh-server \
    net-tools \
    telnet \
    iptables \
    sudo \
    initscripts \
    && yum -y clean all \
    && true
RUN echo "root:newpasswd" | chpasswd
RUN ssh-keygen -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key -N "" && ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key -N "" && \
    ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N "" && ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key -N ""
EXPOSE 22 80
CMD [ "/usr/sbin/sshd" ,"-D" ]

Tag summary

Content type

Image

Digest

Size

128.9 MB

Last updated

about 6 years ago

docker pull guanyebo/centos-sshd