summaryrefslogtreecommitdiff
path: root/regress/usr.bin
diff options
context:
space:
mode:
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