SSH last login message entfernt

This commit is contained in:
2025-11-17 12:38:33 +00:00
parent e1d73ae917
commit f94e990257

View File

@@ -39,8 +39,12 @@ RUN echo "python3 /usr/local/bin/systemd-hdtob.py &" >> /home/crime5/.profile \
&& chown crime5:crime5 /home/crime5/.profile
# SSH
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/^session\s\+optional\s\+pam_lastlog.so/#session optional pam_lastlog.so/' /etc/pam.d/login \
&& sed -i 's/^session\s\+optional\s\+pam_lastlog.so/#session optional pam_lastlog.so/' /etc/pam.d/sshd
# Level1
COPY /Level/Level1/Chat.txt /home/crime1/.Chats/Chat.txt