From 6d446a55b4de920852bbd2fa4f3ebeae33ab4cd8 Mon Sep 17 00:00:00 2001 From: Simon Fowler Date: Tue, 18 Mar 2025 12:43:28 +1100 Subject: [PATCH] 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'. --- xCAT/postscripts/remoteshell | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT/postscripts/remoteshell b/xCAT/postscripts/remoteshell index a5250d542..bfc67f4bd 100755 --- a/xCAT/postscripts/remoteshell +++ b/xCAT/postscripts/remoteshell @@ -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