|
Lines 31-33
for p in 1 2; do
Link Here
|
| 31 |
|
31 |
|
| 32 |
sleep 10 |
32 |
sleep 10 |
| 33 |
done |
33 |
done |
|
|
34 |
|
| 35 |
for p in 1 2; do |
| 36 |
trace "simple clear forwarding proto $p" |
| 37 |
${SSH} -$p -F $OBJ/ssh_config -oClearAllForwardings=yes somehost true |
| 38 |
|
| 39 |
trace "clear local forward proto $p" |
| 40 |
${SSH} -$p -f -F $OBJ/ssh_config -L ${base}01:127.0.0.1:$PORT \ |
| 41 |
-oClearAllForwardings=yes somehost sleep 10 |
| 42 |
if [ $? != 0 ]; then |
| 43 |
fail "connection failed with cleared local forwarding" |
| 44 |
else |
| 45 |
# this one should fail |
| 46 |
${SSH} -$p -F $OBJ/ssh_config -p ${base}01 true \ |
| 47 |
2>${TEST_SSH_LOGFILE} && \ |
| 48 |
fail "local forwarding not cleared" |
| 49 |
fi |
| 50 |
sleep 10 |
| 51 |
|
| 52 |
trace "clear remote forward proto $p" |
| 53 |
${SSH} -$p -f -F $OBJ/ssh_config -R ${base}01:127.0.0.1:$PORT \ |
| 54 |
-oClearAllForwardings=yes somehost sleep 10 |
| 55 |
if [ $? != 0 ]; then |
| 56 |
fail "connection failed with cleared remote forwarding" |
| 57 |
else |
| 58 |
# this one should fail |
| 59 |
${SSH} -$p -F $OBJ/ssh_config -p ${base}01 true \ |
| 60 |
2>${TEST_SSH_LOGFILE} && \ |
| 61 |
fail "remote forwarding not cleared" |
| 62 |
fi |
| 63 |
sleep 10 |
| 64 |
done |