This completely removes client-side support for the SSH 1 protocol, which was already disabled in 12 but is still enabled in 11. For that reason, we will not be able to merge 7.6p1 or newer back to 11.
19 lines
588 B
Bash
19 lines
588 B
Bash
# $OpenBSD: login-timeout.sh,v 1.9 2017/08/07 00:53:51 dtucker Exp $
|
|
# Placed in the Public Domain.
|
|
|
|
tid="connect after login grace timeout"
|
|
|
|
trace "test login grace with privsep"
|
|
cp $OBJ/sshd_config $OBJ/sshd_config.orig
|
|
grep -vi LoginGraceTime $OBJ/sshd_config.orig > $OBJ/sshd_config
|
|
echo "LoginGraceTime 10s" >> $OBJ/sshd_config
|
|
echo "MaxStartups 1" >> $OBJ/sshd_config
|
|
start_sshd
|
|
|
|
(echo SSH-2.0-fake; sleep 60) | telnet 127.0.0.1 ${PORT} >/dev/null 2>&1 &
|
|
sleep 15
|
|
${SSH} -F $OBJ/ssh_config somehost true
|
|
if [ $? -ne 0 ]; then
|
|
fail "ssh connect after login grace timeout failed"
|
|
fi
|