Merge branch 'main' of https://git.st-server.org/Schule/Debian-Retzel
This commit is contained in:
@@ -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/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config
|
||||||
RUN sed -i 's/#PermitEmptyPasswords no/PermitEmptyPasswords no/' /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
|
EXPOSE 2220
|
||||||
|
|
||||||
CMD ["/usr/sbin/sshd","-D"]
|
CMD ["/usr/sbin/sshd","-D"]
|
||||||
|
|||||||
1
guide/crime1.txt
Normal file
1
guide/crime1.txt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
crime1 antwort
|
||||||
1
guide/crime2.txt
Normal file
1
guide/crime2.txt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
crime2 antwort
|
||||||
Reference in New Issue
Block a user