[sshd_config] Increase MaxSessions to 20.
This will make SSH connections more fail tolerant against hanging ssh
connections when running lots of tests.
We typically set ServerInteval* flags to wait up to 10 seconds of idle
connection before terminating the ssh connection; this makes running
lots of tests sequentially that open up multiple ssh sessions each prone to
maxing out on the session numbers if a test hangs or did not terminate
properly (and have to rely on the ServerInteval timeout).
Change-Id: I20375e271befd5ff1bdc8f70e77b794f6d0e538e
Reviewed-on: https://fuchsia-review.googlesource.com/c/third_party/openssh-portable/+/510818
Reviewed-by: James Tucker <raggi@google.com>
Commit-Queue: Yuan Zhi <yuanzhi@google.com>
diff --git a/fuchsia/sshd_config b/fuchsia/sshd_config
index 1cb8d7d..d9346b8 100644
--- a/fuchsia/sshd_config
+++ b/fuchsia/sshd_config
@@ -17,6 +17,7 @@
# many keys added to their SSH agent.
PasswordAuthentication no
MaxAuthTries 20
+MaxSessions 20
Protocol 2
TCPKeepAlive yes