diff options
Diffstat (limited to 'regress/proxy-connect.sh')
-rw-r--r-- | regress/proxy-connect.sh | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/regress/proxy-connect.sh b/regress/proxy-connect.sh index 76e602dd6..023ba7367 100644 --- a/regress/proxy-connect.sh +++ b/regress/proxy-connect.sh | |||
@@ -1,26 +1,31 @@ | |||
1 | # $OpenBSD: proxy-connect.sh,v 1.6 2013/03/07 00:20:34 djm Exp $ | 1 | # $OpenBSD: proxy-connect.sh,v 1.7 2014/05/03 18:46:14 dtucker Exp $ |
2 | # Placed in the Public Domain. | 2 | # Placed in the Public Domain. |
3 | 3 | ||
4 | tid="proxy connect" | 4 | tid="proxy connect" |
5 | 5 | ||
6 | verbose "plain username" | 6 | mv $OBJ/sshd_proxy $OBJ/sshd_proxy.orig |
7 | for p in 1 2; do | 7 | |
8 | ${SSH} -$p -F $OBJ/ssh_proxy 999.999.999.999 true | 8 | for ps in no yes; do |
9 | if [ $? -ne 0 ]; then | 9 | cp $OBJ/sshd_proxy.orig $OBJ/sshd_proxy |
10 | fail "ssh proxyconnect protocol $p failed" | 10 | echo "UsePrivilegeSeparation $ps" >> $OBJ/sshd_proxy |
11 | fi | 11 | |
12 | SSH_CONNECTION=`${SSH} -$p -F $OBJ/ssh_proxy 999.999.999.999 'echo $SSH_CONNECTION'` | 12 | for p in 1 2; do |
13 | for c in no yes; do | ||
14 | verbose "plain username protocol $p privsep=$ps comp=$c" | ||
15 | opts="-$p -oCompression=$c -F $OBJ/ssh_proxy" | ||
16 | SSH_CONNECTION=`${SSH} $opts 999.999.999.999 'echo $SSH_CONNECTION'` | ||
13 | if [ $? -ne 0 ]; then | 17 | if [ $? -ne 0 ]; then |
14 | fail "ssh proxyconnect protocol $p failed" | 18 | fail "ssh proxyconnect protocol $p privsep=$ps comp=$c failed" |
15 | fi | 19 | fi |
16 | if [ "$SSH_CONNECTION" != "UNKNOWN 65535 UNKNOWN 65535" ]; then | 20 | if [ "$SSH_CONNECTION" != "UNKNOWN 65535 UNKNOWN 65535" ]; then |
17 | fail "bad SSH_CONNECTION" | 21 | fail "bad SSH_CONNECTION protocol $p privsep=$ps comp=$c" |
18 | fi | 22 | fi |
23 | done | ||
24 | done | ||
19 | done | 25 | done |
20 | 26 | ||
21 | verbose "username with style" | ||
22 | for p in 1 2; do | 27 | for p in 1 2; do |
28 | verbose "username with style protocol $p" | ||
23 | ${SSH} -$p -F $OBJ/ssh_proxy ${USER}:style@999.999.999.999 true || \ | 29 | ${SSH} -$p -F $OBJ/ssh_proxy ${USER}:style@999.999.999.999 true || \ |
24 | fail "ssh proxyconnect protocol $p failed" | 30 | fail "ssh proxyconnect protocol $p failed" |
25 | done | 31 | done |
26 | |||