Sha256: fe13adce5b47a0f8b7821533d26a0098e0239f2b896b42a1b53884b43f561194
Contents?: true
Size: 734 Bytes
Versions: 28
Compression:
Stored size: 734 Bytes
Contents
FROM centos:6 RUN yum install -y yum install openssh openssh-server openssh-clients sudo RUN useradd tester RUN echo "tester" | passwd --stdin tester RUN mkdir -p /home/tester/.ssh; chown tester /home/tester/.ssh; chmod 700 /home/tester/.ssh ADD authorized_keys /home/tester/.ssh/ RUN chown tester /home/tester/.ssh/authorized_keys; chmod 600 /home/tester/.ssh/authorized_keys RUN echo "tester ALL=(ALL) ALL" >> /etc/sudoers.d/tester RUN sed -ri 's/UsePAM yes/#UsePAM yes/g' /etc/ssh/sshd_config RUN sed -ri 's/#UsePAM no/UsePAM no/g' /etc/ssh/sshd_config RUN sed -ri 's/PasswordAuthentication yes/PasswordAuthentication no/g' /etc/ssh/sshd_config RUN /etc/init.d/sshd start RUN /etc/init.d/sshd stop CMD /usr/sbin/sshd -D
Version data entries
28 entries across 28 versions & 1 rubygems