diff --git a/Dockerfile b/Dockerfile index 42a21c2..82e2ff9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,6 +30,15 @@ RUN chown crime2:crime2 /home/crime2/data.txt && chmod 600 /home/crime1/data.txt RUN sed -i 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config RUN sed -i 's/#PermitEmptyPasswords no/PermitEmptyPasswords no/' /etc/ssh/sshd_config + + +RUN echo "crime1" > /guide/crime1.txt +RUN echo "crime2" > /guide/crime2.txt + +RUN echo 'if [ -f "/guide/$USER.txt" ]; then cat "/guide/$USER.txt"; fi' >> /etc/bash.bashrc + + + EXPOSE 2220 CMD ["/usr/sbin/sshd","-D"] diff --git a/guide/crime1.txt b/guide/crime1.txt new file mode 100644 index 0000000..027ee0f --- /dev/null +++ b/guide/crime1.txt @@ -0,0 +1 @@ +crime1 antwort \ No newline at end of file diff --git a/guide/crime2.txt b/guide/crime2.txt new file mode 100644 index 0000000..d908650 --- /dev/null +++ b/guide/crime2.txt @@ -0,0 +1 @@ +crime2 antwort \ No newline at end of file