Skip to content

Commit f756e73

Browse files
committed
Increase sshd MaxStartups
1 parent 63ff46e commit f756e73

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docker/ci-storage/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ RUN true \
1212
&& apt-get install -y --no-install-recommends \
1313
openssh-server \
1414
awscli jq gh rsync python3 python3-yaml rsyslog systemctl tzdata gosu less mc git curl wget pv psmisc unzip zstd file vim nano telnet net-tools apt-transport-https ca-certificates locales gnupg lsb-release \
15-
&& sed -i -e "s|#PermitRootLogin.*|PermitRootLogin no|" /etc/ssh/sshd_config \
15+
&& sed -i -E "s|#?PermitRootLogin.*|PermitRootLogin no|" /etc/ssh/sshd_config \
16+
&& sed -i -E "s|#?MaxStartups.*|MaxStartups 500:30:1000|" /etc/ssh/sshd_config \
1617
&& useradd -m guest -s /bin/bash \
1718
&& mkdir ~guest/.ssh && chmod 700 ~guest/.ssh \
1819
&& chown -R guest:guest ~guest

0 commit comments

Comments
 (0)