Lines Matching +full:port +full:- +full:base

10 base=33
11 last=$PORT
14 CTL=${SSH_REGRESS_TMP}/ctl-sock
18 a=$base$j$i
21 # fwd chain: $a -> $b -> $c
22 fwd="$fwd -L$a:127.0.0.1:$b -R$b:127.0.0.1:$c"
28 rm -f $CTL
29 ${SSH} -S $CTL -N -M -F $OBJ/ssh_config -f $fwd somehost
32 ${SSH} -F $OBJ/ssh_config -p$last -o 'ConnectionAttempts=10' \
34 test -s ${COPY} || fail "failed copy of ${DATA}"
37 ${SSH} -F $OBJ/ssh_config -S $CTL -O exit somehost 2>/dev/null
40 trace "exit on -$d forward failure"
43 ${SSH} -F $OBJ/ssh_config \
44 -$d ${base}01:127.0.0.1:$PORT \
45 -$d ${base}02:127.0.0.1:$PORT \
46 -$d ${base}03:127.0.0.1:$PORT \
47 -$d ${base}04:127.0.0.1:$PORT \
48 -oExitOnForwardFailure=yes somehost true
53 ${SSH} -q -F $OBJ/ssh_config \
54 -$d ${base}01:127.0.0.1:$PORT \
55 -$d ${base}02:127.0.0.1:$PORT \
56 -$d ${base}03:127.0.0.1:$PORT \
57 -$d ${base}01:localhost:$PORT \
58 -$d ${base}04:127.0.0.1:$PORT \
59 -oExitOnForwardFailure=yes somehost true
68 ${SSH} -F $OBJ/ssh_config -oClearAllForwardings=yes somehost true
71 rm -f $CTL
72 ${SSH} -S $CTL -N -M -f -F $OBJ/ssh_config -L ${base}01:127.0.0.1:$PORT \
73 -oClearAllForwardings=yes somehost
78 ${SSH} -F $OBJ/ssh_config -p ${base}01 somehost true \
82 ${SSH} -F $OBJ/ssh_config -S $CTL -O exit somehost 2>/dev/null
85 rm -f $CTL
86 ${SSH} -S $CTL -N -M -f -F $OBJ/ssh_config -R ${base}01:127.0.0.1:$PORT \
87 -oClearAllForwardings=yes somehost
92 ${SSH} -F $OBJ/ssh_config -p ${base}01 somehost true \
96 ${SSH} -F $OBJ/ssh_config -S $CTL -O exit somehost 2>/dev/null
99 cmd="${SSH} -F $OBJ/ssh_config"
100 $cmd -o "ProxyCommand $cmd -q -W localhost:$PORT somehost" somehost true
105 echo "LocalForward ${base}01 127.0.0.1:$PORT" >> $OBJ/ssh_config
106 echo "RemoteForward ${base}02 127.0.0.1:${base}01" >> $OBJ/ssh_config
109 rm -f $CTL
110 ${SSH} -S $CTL -N -M -F $OBJ/ssh_config -f somehost
113 ${SSH} -F $OBJ/ssh_config -p${base}02 -o 'ConnectionAttempts=10' \
115 test -s ${COPY} || fail "failed copy of ${DATA}"
118 ${SSH} -F $OBJ/ssh_config -S $CTL -O exit somehost 2>/dev/null
121 rm -f $OBJ/unix-[123].fwd
122 rm -f $CTL $CTL.[123]
123 ${SSH} -S $CTL -N -M -f -F $OBJ/ssh_config -R${base}01:[$OBJ/unix-1.fwd] somehost
124 ${SSH} -S $CTL.1 -N -M -f -F $OBJ/ssh_config -L[$OBJ/unix-1.fwd]:[$OBJ/unix-2.fwd] somehost
125 ${SSH} -S $CTL.2 -N -M -f -F $OBJ/ssh_config -R[$OBJ/unix-2.fwd]:[$OBJ/unix-3.fwd] somehost
126 ${SSH} -S $CTL.3 -N -M -f -F $OBJ/ssh_config -L[$OBJ/unix-3.fwd]:127.0.0.1:$PORT somehost
127 ${SSH} -F $OBJ/ssh_config -p${base}01 -o 'ConnectionAttempts=10' \
129 test -s ${COPY} || fail "failed copy ${DATA}"
132 ${SSH} -F $OBJ/ssh_config -S $CTL -O exit somehost 2>/dev/null
133 ${SSH} -F $OBJ/ssh_config -S $CTL.1 -O exit somehost 2>/dev/null
134 ${SSH} -F $OBJ/ssh_config -S $CTL.2 -O exit somehost 2>/dev/null
135 ${SSH} -F $OBJ/ssh_config -S $CTL.3 -O exit somehost 2>/dev/null