Sha256: 38d5d7f5969840a4eefa64caa34f6a0001d00c7c53e9c3b41fc1975468bf5202
Contents?: true
Size: 587 Bytes
Versions: 139
Compression:
Stored size: 587 Bytes
Contents
FROM ubuntu:18.04 MAINTAINER Aleksandar Diklic "https://github.com/rastasheep" RUN apt-get update RUN apt-get install -y openssh-server RUN mkdir /var/run/sshd RUN echo 'root:root' |chpasswd RUN sed -ri 's/^#?PermitRootLogin\s+.*/PermitRootLogin yes/' /etc/ssh/sshd_config RUN sed -ri 's/UsePAM yes/#UsePAM yes/g' /etc/ssh/sshd_config RUN mkdir /root/.ssh ADD id_rsa /root/.ssh/id_rsa ADD id_rsa.pub /root/.ssh/id_rsa.pub ADD id_rsa.pub /root/.ssh/authorized_keys RUN apt-get clean && \ rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* EXPOSE 22 CMD ["/usr/sbin/sshd", "-D"]
Version data entries
139 entries across 139 versions & 2 rubygems