diff mbox series

[3/4] openssh: Increase MaxStartups and MaxSessions

Message ID 20240808145042.3914762-3-Harish.Sadineni@windriver.com
State New
Headers show
Series [1/4] gcc-runtime: enabling "network" task specific flag | expand

Commit Message

Sadineni, Harish Aug. 8, 2024, 2:50 p.m. UTC
From: Harish Sadineni <Harish.Sadineni@windriver.com>

Fixes the following failures:

while runnig oe-selftest for gcc, testcases that need to be run on qemu
are not running due to below failures:
- kex_exchange_identification: read: Connection reset by peer^M
   Connection reset by 192.168.7.2 port 22^M
   ERROR: Couldn't create remote directory /tmp/runtest.3549814 on ssh
To resolve kex exchange identification error increased the MaxStartups.

while running oe-selftest for gcc, with allowing multiple ssh sessions
some testcases are failing due to below failures:
-mux_client_request_session: session request failed: Session open refused by peer
 Host key verification failed.
 ERROR: Couldn't create remote directory /tmp/runtest.3658735 on linux-ssh

To resolve mux_client_request_session request failures increased
MaxSessions.

Signed-off-by: Harish Sadineni <Harish.Sadineni@windriver.com>
---
 meta/recipes-connectivity/openssh/openssh/sshd_config | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/meta/recipes-connectivity/openssh/openssh/sshd_config b/meta/recipes-connectivity/openssh/openssh/sshd_config
index e9eaf93157..37ffe28142 100644
--- a/meta/recipes-connectivity/openssh/openssh/sshd_config
+++ b/meta/recipes-connectivity/openssh/openssh/sshd_config
@@ -34,7 +34,7 @@  Include /etc/ssh/sshd_config.d/*.conf
 #PermitRootLogin prohibit-password
 #StrictModes yes
 #MaxAuthTries 6
-#MaxSessions 10
+MaxSessions 1000
 
 #PubkeyAuthentication yes
 
@@ -100,7 +100,7 @@  ClientAliveInterval 15
 ClientAliveCountMax 4
 #UseDNS no
 #PidFile /var/run/sshd.pid
-#MaxStartups 10:30:100
+MaxStartups 75:30:100
 #PermitTunnel no
 #ChrootDirectory none
 #VersionAddendum none