2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-12-27 11:21:42 +00:00

Use default MaxStartups value.

Some versions of openssh (notably 8.9p1, as ships with Ubuntu 22.04) are
buggy with values of MaxStartups >= 1024 (see
https://lists.mindrot.org/pipermail/openssh-bugs/2022-March/023864.html
for details). Rather than try to tweak this setting, use the default
value of '10:30:100'.
This commit is contained in:
Simon Fowler
2025-03-18 12:43:28 +11:00
committed by Markus Hilger
parent 7cc8f8b979
commit 6d446a55b4

View File

@@ -61,8 +61,8 @@ then
#delete all occurance of the attribute and then add xCAT settings
sed -i '/X11Forwarding /'d /etc/ssh/sshd_config
echo "X11Forwarding yes" >>/etc/ssh/sshd_config
# delete all MaxStartups settings and use default value
sed -i '/MaxStartups /'d /etc/ssh/sshd_config
echo "MaxStartups 1024" >>/etc/ssh/sshd_config
if [ "$SETUPFORPCM" = "1" ]; then
if [[ $OSVER == sle* ]];then