alpine: disable PerSourcePenalties on sshd

This commit is contained in:
Ryo Nakamura
2025-08-12 19:11:51 +09:00
parent 11106d64fe
commit 1eea34ff39

View File

@@ -19,6 +19,10 @@ RUN ssh-keygen -A \
&& ssh-keygen -f /root/.ssh/id_rsa -N "" \
&& cat /root/.ssh/id_rsa.pub > /root/.ssh/authorized_keys
# disable PerSourcePenaltie, which would distrub test:
# https://undeadly.org/cgi?action=article;sid=20240607042157
RUN echo "PerSourcePenalties=no" > /etc/ssh/sshd_config.d/90-mscp-test.conf
# create test user
RUN addgroup -S test \
&& adduser -S test -G test \