-# $OpenBSD: Makefile,v 1.139 2025/06/28 13:34:08 dtucker Exp $
+# $OpenBSD: Makefile,v 1.140 2025/07/04 07:52:17 djm Exp $
tests: prep file-tests t-exec unit
agent-pkcs11-restrict \
agent-pkcs11-cert \
penalty \
- penalty-expire
+ penalty-expire \
+ connect-bigconf
INTEROP_TESTS= putty-transfer putty-ciphers putty-kex conch-ciphers
INTEROP_TESTS+= dropbear-ciphers dropbear-kex dropbear-server
--- /dev/null
+# $OpenBSD: connect-bigconf.sh,v 1.1 2025/07/04 07:52:17 djm Exp $
+# Placed in the Public Domain.
+
+tid="simple connect"
+
+for x in `jot 10000 1` ; do
+ echo "Match group NONEXIST" >> $OBJ/sshd_config
+ echo "ChrootDirectory /some/path/for/group/NONEXIST" >> $OBJ/sshd_config
+done
+#cat $OBJ/sshd_config
+start_sshd
+
+trace "direct connect with large sshd_config"
+${SSH} -F $OBJ/ssh_config somehost true
+if [ $? -ne 0 ]; then
+ fail "ssh direct connect with large sshd_config failed"
+fi