]> andersk Git - gssapi-openssh.git/blame - openssh/regress/login-timeout.sh
The man2html from jbasney on pkilab2 works whereas the standard one doesn't.
[gssapi-openssh.git] / openssh / regress / login-timeout.sh
CommitLineData
66b5936e 1# $OpenBSD: login-timeout.sh,v 1.1 2004/02/17 08:23:20 dtucker Exp $
2# Placed in the Public Domain.
3
4tid="connect after login grace timeout"
5
6trace "test login grace with privsep"
7echo "LoginGraceTime 10s" >> $OBJ/sshd_config
8echo "MaxStartups 1" >> $OBJ/sshd_config
9start_sshd
10
11(echo SSH-2.0-fake; sleep 60) | telnet localhost ${PORT} >/dev/null 2>&1 &
12sleep 15
13${SSH} -F $OBJ/ssh_config somehost true
14if [ $? -ne 0 ]; then
15 fail "ssh connect after login grace timeout failed with privsep"
16fi
17
18kill `cat $PIDFILE`
19
20trace "test login grace without privsep"
21echo "UsePrivilegeSeparation no" >> $OBJ/sshd_config
22start_sshd
23
24(echo SSH-2.0-fake; sleep 60) | telnet localhost ${PORT} >/dev/null 2>&1 &
25sleep 15
26${SSH} -F $OBJ/ssh_config somehost true
27if [ $? -ne 0 ]; then
28 fail "ssh connect after login grace timeout failed without privsep"
29fi
This page took 0.07897 seconds and 5 git commands to generate.