1 # $OpenBSD: putty-transfer.sh,v 1.2 2008/06/30 10:31:11 djm Exp $
2 # Placed in the Public Domain.
4 tid="putty transfer data"
9 if test "x$REGRESS_INTEROP_PUTTY" != "xyes" ; then
10 echo "putty interop tests not enabled"
14 # XXX support protocol 1 too
17 verbose "$tid: proto $p compression $c"
19 cp ${OBJ}/.putty/sessions/localhost_proxy \
20 ${OBJ}/.putty/sessions/compression_$c
21 echo "Compression=$c" >> ${OBJ}/.putty/sessions/kex_$k
22 env HOME=$PWD ${PLINK} -load compression_$c -batch \
23 -i putty.rsa$p 127.0.0.1 cat ${DATA} > ${COPY}
25 fail "ssh cat $DATA failed"
27 cmp ${DATA} ${COPY} || fail "corrupted copy"
29 for s in 10 100 1k 32k 64k 128k 256k; do
30 trace "proto $p compression $c dd-size ${s}"
32 dd if=$DATA obs=${s} 2> /dev/null | \
33 env HOME=$PWD ${PLINK} -load compression_$c \
34 -batch -i putty.rsa$p 127.0.0.1 \
37 fail "ssh cat $DATA failed"
39 cmp $DATA ${COPY} || fail "corrupted copy"