summaryrefslogtreecommitdiff
path: root/regress/usr.bin
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2002-02-17 22:22:46 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2002-02-17 22:22:46 +0000
commite59357f842efb4b5301b194970688e1d2da24d97 (patch)
treeb49b3fb71a441bfacd0a0603c9be0a2cf9109d06 /regress/usr.bin
parent350f10079ca0504d2b5ba5ccfa7ecb573508d83b (diff)
try agent forwarding, too.
Diffstat (limited to 'regress/usr.bin')
-rw-r--r--regress/usr.bin/ssh/agent.sh15
1 files changed, 14 insertions, 1 deletions
diff --git a/regress/usr.bin/ssh/agent.sh b/regress/usr.bin/ssh/agent.sh
index 2ee2bf84828..64623c0064d 100644
--- a/regress/usr.bin/ssh/agent.sh
+++ b/regress/usr.bin/ssh/agent.sh
@@ -1,4 +1,4 @@
-# $OpenBSD: agent.sh,v 1.4 2002/02/16 01:09:47 markus Exp $
+# $OpenBSD: agent.sh,v 1.5 2002/02/17 22:22:45 markus Exp $
# Placed in the Public Domain.
tid="simple agent test"
@@ -51,6 +51,19 @@ else
fi
done
+ trace "agent forwarding"
+ for p in 1 2; do
+ ssh -A -$p -F $OBJ/ssh_proxy somehost ssh-add -l > /dev/null 2>&1
+ if [ $? -ne 0 ]; then
+ fail "ssh-add -l via agent fwd proto $p failed (exit code $?)"
+ fi
+ ssh -A -$p -F $OBJ/ssh_proxy somehost \
+ "ssh -$p -F $OBJ/ssh_proxy somehost exit 5$p"
+ if [ $? -ne 5$p ]; then
+ fail "agent fwd proto $p failed (exit code $?)"
+ fi
+ done
+
trace "delete all agent keys"
ssh-add -D > /dev/null 2>&1
if [ $? -ne 0 ]; then