xref: /freebsd/crypto/openssh/regress/proxy-connect.sh (revision f4b37ed0f8b307b1f3f0f630ca725d68f1dff30d)
1#	$OpenBSD: proxy-connect.sh,v 1.6 2013/03/07 00:20:34 djm Exp $
2#	Placed in the Public Domain.
3
4tid="proxy connect"
5
6verbose "plain username"
7for p in 1 2; do
8	${SSH} -$p -F $OBJ/ssh_proxy 999.999.999.999 true
9	if [ $? -ne 0 ]; then
10		fail "ssh proxyconnect protocol $p failed"
11	fi
12	SSH_CONNECTION=`${SSH} -$p -F $OBJ/ssh_proxy 999.999.999.999 'echo $SSH_CONNECTION'`
13	if [ $? -ne 0 ]; then
14		fail "ssh proxyconnect protocol $p failed"
15	fi
16	if [ "$SSH_CONNECTION" != "UNKNOWN 65535 UNKNOWN 65535" ]; then
17		fail "bad SSH_CONNECTION"
18	fi
19done
20
21verbose "username with style"
22for p in 1 2; do
23	${SSH} -$p -F $OBJ/ssh_proxy ${USER}:style@999.999.999.999 true || \
24		fail "ssh proxyconnect protocol $p failed"
25done
26
27