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

Version Path
rundock-0.4.16 spec/integration/platforms/centos6/Dockerfile
rundock-0.4.15 spec/integration/platforms/centos6/Dockerfile
rundock-0.4.14 spec/integration/platforms/centos6/Dockerfile
rundock-0.4.13 spec/integration/platforms/centos6/Dockerfile
rundock-0.4.12 spec/integration/platforms/centos6/Dockerfile
rundock-0.4.11 spec/integration/platforms/centos6/Dockerfile
rundock-0.4.10 spec/integration/platforms/centos6/Dockerfile
rundock-0.4.8 spec/integration/platforms/centos6/Dockerfile
rundock-0.4.7 spec/integration/platforms/centos6/Dockerfile
rundock-0.4.6 spec/integration/platforms/centos6/Dockerfile
rundock-0.4.4 spec/integration/platforms/centos6/Dockerfile
rundock-0.4.3 spec/integration/platforms/centos6/Dockerfile
rundock-0.4.2 spec/integration/platforms/centos6/Dockerfile
rundock-0.4.1 spec/integration/platforms/centos6/Dockerfile
rundock-0.4.0 spec/integration/platforms/centos6/Dockerfile
rundock-0.3.0 spec/integration/platforms/centos6/Dockerfile
rundock-0.2.11 spec/integration/platforms/centos6/Dockerfile
rundock-0.2.10 spec/integration/platforms/centos6/Dockerfile
rundock-0.2.9 spec/integration/platforms/centos6/Dockerfile
rundock-0.2.8 spec/integration/platforms/centos6/Dockerfile