dtucker@openbsd.org | 609ecc8 | 2017-09-26 22:39:25 +0000 | [diff] [blame] | 1 | # $OpenBSD: proxy-connect.sh,v 1.11 2017/09/26 22:39:25 dtucker Exp $ |
Damien Miller | 38cd435 | 2002-05-01 13:17:33 +1000 | [diff] [blame] | 2 | # Placed in the Public Domain. |
| 3 | |
| 4 | tid="proxy connect" |
| 5 | |
dtucker@openbsd.org | 609ecc8 | 2017-09-26 22:39:25 +0000 | [diff] [blame] | 6 | for 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 |
Damien Miller | 38cd435 | 2002-05-01 13:17:33 +1000 | [diff] [blame] | 17 | done |
Darren Tucker | 712de4d | 2013-05-17 09:07:12 +1000 | [diff] [blame] | 18 | |
djm@openbsd.org | dd36932 | 2017-04-30 23:34:55 +0000 | [diff] [blame] | 19 | verbose "username with style" |
| 20 | ${SSH} -F $OBJ/ssh_proxy ${USER}:style@999.999.999.999 true || \ |
| 21 | fail "ssh proxyconnect failed" |