1# $OpenBSD: proxy-connect.sh,v 1.11 2017/09/26 22:39:25 dtucker Exp $ 2# Placed in the Public Domain. 3 4tid="proxy connect" 5 6for c in no yes; do 7 verbose "plain username comp=$c" 8 opts="-oCompression=$c -F $OBJ/ssh_proxy" 9 SSH_CONNECTION=`${SSH} $opts 999.999.999.999 'echo $SSH_CONNECTION'` 10 if [ $? -ne 0 ]; then 11 fail "ssh proxyconnect comp=$c failed" 12 fi 13 if [ "$SSH_CONNECTION" != "UNKNOWN 65535 UNKNOWN 65535" ]; then 14 fail "bad SSH_CONNECTION comp=$c: " \ 15 "$SSH_CONNECTION" 16 fi 17done 18 19verbose "username with style" 20${SSH} -F $OBJ/ssh_proxy ${USER}:style@999.999.999.999 true || \ 21 fail "ssh proxyconnect failed" 22