summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2023-05-12 06:36:28 +0000
committerDamien Miller <djm@cvs.openbsd.org>2023-05-12 06:36:28 +0000
commite10064be9ea27daabee66a565b3e270f40307046 (patch)
treed402dd1632b305e414cd4658c0d51138c8ac5ad7
parent608eb27c46411d8483cc166cc0314b4820c778b0 (diff)
better error messages
-rw-r--r--regress/usr.bin/ssh/forcecommand.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/regress/usr.bin/ssh/forcecommand.sh b/regress/usr.bin/ssh/forcecommand.sh
index e059f1fdbc6..e756600a6f9 100644
--- a/regress/usr.bin/ssh/forcecommand.sh
+++ b/regress/usr.bin/ssh/forcecommand.sh
@@ -1,4 +1,4 @@
-# $OpenBSD: forcecommand.sh,v 1.4 2017/04/30 23:34:55 djm Exp $
+# $OpenBSD: forcecommand.sh,v 1.5 2023/05/12 06:36:27 djm Exp $
# Placed in the Public Domain.
tid="forced command"
@@ -12,7 +12,7 @@ for t in ${SSH_KEYTYPES}; do
done
trace "forced command in key option"
-${SSH} -F $OBJ/ssh_proxy somehost false || fail "forced command in key"
+${SSH} -F $OBJ/ssh_proxy somehost false || fail "forced command in key option"
cp /dev/null $OBJ/authorized_keys_$USER
for t in ${SSH_KEYTYPES}; do
@@ -24,7 +24,7 @@ cp $OBJ/sshd_proxy_bak $OBJ/sshd_proxy
echo "ForceCommand true" >> $OBJ/sshd_proxy
trace "forced command in sshd_config overrides key option"
-${SSH} -F $OBJ/ssh_proxy somehost false || fail "forced command in key"
+${SSH} -F $OBJ/ssh_proxy somehost false || fail "forced command config"
cp $OBJ/sshd_proxy_bak $OBJ/sshd_proxy
echo "ForceCommand false" >> $OBJ/sshd_proxy
@@ -32,4 +32,4 @@ echo "Match User $USER" >> $OBJ/sshd_proxy
echo " ForceCommand true" >> $OBJ/sshd_proxy
trace "forced command with match"
-${SSH} -F $OBJ/ssh_proxy somehost false || fail "forced command in key"
+${SSH} -F $OBJ/ssh_proxy somehost false || fail "forced command match"