Public Repository

Last pushed: 2 years ago
Short Description
docker lab images
Full Description

ubuntu sshd lab image.


FROM ubuntu:14.04
RUN apt-get update && apt-get upgrade -y \
         && apt-get install -y openssh-server

RUN mkdir /var/run/sshd
RUN echo 'root:foobar' | chpasswd
RUN sed -i 's/PermitRootLogin without-password/PermitRootLogin yes/' /etc/ssh/sshd_config

RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd

ENV NOTVISIBLE "in users profile"
RUN echo "export VISIBLE=now" >> /etc/profile

EXPOSE 22
CMD ["/usr/sbin/sshd", "-D"]
Docker Pull Command
Owner
mad01

Comments (0)