Dockerfile aktualisiert
This commit is contained in:
@@ -73,6 +73,11 @@ RUN echo 'if [ -f "/guide/$(whoami).txt" ]; then cat "/guide/$(whoami).txt"; fi'
|
||||
|
||||
RUN echo 'export PS1="\u@$(hostname):\\$ "' >> /etc/profile
|
||||
|
||||
|
||||
RUN rm -f /etc/legal
|
||||
RUN sed -i 's/^session\s\+optional\s\+pam_motd/#session optional pam_motd/' /etc/pam.d/sshd
|
||||
|
||||
|
||||
EXPOSE 22
|
||||
CMD ["sh", "-c", "echo escape-room > /etc/hostname && /usr/sbin/sshd -D"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user